Add zsh-syntax-highlighting plugin and update highlight styles in zsh configuration

This commit is contained in:
Philip Henning 2025-08-27 16:31:41 +02:00
parent 5b301a5c6d
commit 86162eafcf
2 changed files with 7 additions and 1 deletions

View file

@ -77,7 +77,11 @@ COMPLETION_WAITING_DOTS="true"
ZOXIDE_CMD_OVERRIDE="cd"
# zsh-autosuggestions - https://github.com/zsh-users/zsh-autosuggestions?tab=readme-ov-file#suggestion-highlight-style
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ffaa33,bold"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="bold"
# zsh-syntax-highlighting - unknown tokens / errors
typeset -A ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=black,bg=red,bold'
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
@ -115,6 +119,7 @@ plugins=(
zsh-autosuggestions
zsh-navigation-tools
zsh-ssh
zsh-syntax-highlighting
{%@@ if distro == 'macos' @@%} # Mac specifics
brew
iterm2