From 6ca24876b0f4a692c73d4b416939d89f4c04928b Mon Sep 17 00:00:00 2001 From: pfych Date: Thu, 20 Feb 2025 15:39:00 +1100 Subject: [PATCH] Themes & WezTerm tab titles --- .config/zsh/plugins.sh | 7 +++++++ .config/zsh/plugins/catppuccin-zsh-syntax-highlighting | 1 + .gitmodules | 3 +++ 3 files changed, 11 insertions(+) create mode 160000 .config/zsh/plugins/catppuccin-zsh-syntax-highlighting diff --git a/.config/zsh/plugins.sh b/.config/zsh/plugins.sh index c1d19c5..e2db201 100644 --- a/.config/zsh/plugins.sh +++ b/.config/zsh/plugins.sh @@ -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)" } diff --git a/.config/zsh/plugins/catppuccin-zsh-syntax-highlighting b/.config/zsh/plugins/catppuccin-zsh-syntax-highlighting new file mode 160000 index 0000000..7926c3d --- /dev/null +++ b/.config/zsh/plugins/catppuccin-zsh-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit 7926c3d3e17d26b3779851a2255b95ee650bd928 diff --git a/.gitmodules b/.gitmodules index 484c01e..e7bdc7c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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