From a18f7ecb8d0316c00d27d2b0c5692e5113bba485 Mon Sep 17 00:00:00 2001 From: Daniel Sissom Date: Fri, 5 Jul 2019 14:48:29 -0500 Subject: [PATCH] Only use zsh highlighting if installed. --- zsh/zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index fa8e3f0..91c52ca 100644 --- a/zsh/zshrc +++ b/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