zsh: Add automatic inclusion of zsh-syntax-hightlighting

This commit is contained in:
madmaurice 2020-01-02 22:25:06 +01:00
parent 91b93d5b48
commit 93b945d0cd
1 changed files with 4 additions and 0 deletions

View File

@ -2,3 +2,7 @@ autoload -U colors && colors
PROMPT="%{$fg[red]%}%n%{$fg[yellow]%}@%{$fg[green]%}%M%{$fg[yellow]%} > %{$reset_color%}"
RPROMPT="%{$fg[yellow]%}%~%{$reset_color%}"
# Enable syntax hightlighting if available
[ -f "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && \
source "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"