Add some highlighting options

This commit is contained in:
Tom Willemse 2013-05-23 02:43:14 +02:00
parent 0530c9ad54
commit 2ab08bd830

16
.zshrc
View file

@ -106,8 +106,24 @@ bindkey "^W" backward-delete-char
if [ -z $EMACS ]; then if [ -z $EMACS ]; then
source $HOME/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh source $HOME/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red'
ZSH_HIGHLIGHT_STYLES[builtin]='fg=cyan'
ZSH_HIGHLIGHT_STYLES[function]='fg=blue'
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue' ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue'
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue' ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue'
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=cyan'
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=cyan'
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=cyan'
ZSH_HIGHLIGHT_STYLES[assign]='fg=yellow'
ZSH_HIGHLIGHT_STYLES[bracket-level-1]='fg=red'
ZSH_HIGHLIGHT_STYLES[bracket-level-2]='fg=yellow'
ZSH_HIGHLIGHT_STYLES[bracket-level-3]='fg=green'
ZSH_HIGHLIGHT_STYLES[bracket-level-4]='fg=cyan'
ZSH_HIGHLIGHT_STYLES[bracket-level-5]='fg=blue'
ZSH_HIGHLIGHT_STYLES[bracket-level-6]='fg=magenta'
fi fi
compinit compinit