Themes & WezTerm tab titles

This commit is contained in:
pfych 2025-02-20 15:39:00 +11:00
parent eb400e2e49
commit 6ca24876b0
3 changed files with 11 additions and 0 deletions

View File

@ -1,4 +1,5 @@
source "$CONFIGDIR/zsh/plugins/zsh-git-prompt/zshrc.sh"
source "$CONFIGDIR/zsh/plugins/catppuccin-zsh-syntax-highlighting/themes/catppuccin_mocha-zsh-syntax-highlighting.zsh"
source "$CONFIGDIR/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
source "$CONFIGDIR/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
@ -14,6 +15,12 @@ configPrompt() {
*) PROMPT_EMOJI="😵‍💫";;
esac
if [ -x "$(command -v wezterm)" ]; then
if [ "$TERM_PROGRAM" = "WezTerm" ]; then
wezterm cli set-tab-title "$PROMPT_EMOJI $(pwd)"
fi
fi
PROMPT="$PROMPT_EMOJI [%c] "
RPROMPT="$(git_super_status)"
}

@ -0,0 +1 @@
Subproject commit 7926c3d3e17d26b3779851a2255b95ee650bd928

3
.gitmodules vendored
View File

@ -7,3 +7,6 @@
[submodule ".config/zsh/plugins/zsh-autosuggestions"]
path = .config/zsh/plugins/zsh-autosuggestions
url = https://github.com/zsh-users/zsh-autosuggestions
[submodule ".config/zsh/plugins/catppuccin-zsh-syntax-highlighting"]
path = .config/zsh/plugins/catppuccin-zsh-syntax-highlighting
url = https://github.com/catppuccin/zsh-syntax-highlighting.git