From 93b945d0cddbcd90aeedd857d5771546245ba292 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Thu, 2 Jan 2020 22:25:06 +0100 Subject: [PATCH] zsh: Add automatic inclusion of zsh-syntax-hightlighting --- zsh/.zsh/02-prompt.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/.zsh/02-prompt.zsh b/zsh/.zsh/02-prompt.zsh index dd3535d..b5d2ebd 100644 --- a/zsh/.zsh/02-prompt.zsh +++ b/zsh/.zsh/02-prompt.zsh @@ -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"