Browse Source

Only use zsh highlighting if installed.

master
Daniel Sissom 5 years ago
parent
commit
a18f7ecb8d
Signed by untrusted user who does not match committer: djsissom GPG Key ID: 2C30FFB796852389
1 changed files with 2 additions and 1 deletions
  1. + 2
    - 1
      zsh/zshrc

+ 2
- 1
zsh/zshrc

@ -342,7 +342,8 @@ growl() { echo -e $'\e]9;'${1}'\007' ; return ; }
# End
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
zsh_hl_path=/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
[ -r $zsh_hl_path ] && source $zsh_hl_path
ZSH_HIGHLIGHT_HIGHLIGHTERS=(brackets root) # options: main brackets pattern cursor root line
#ZSH_HIGHLIGHT_STYLES[unknown-token]='none' # example to customize main class tokens

Loading…
Cancel
Save