From 7cdfdea65fd30d46cab13cc8fb2de5b08c92509c Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Sat, 17 Feb 2018 20:51:44 +0100 Subject: [PATCH] Use multiple paths to find and load zsh-syntax-highlighting. --- home/dotfiles/zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/dotfiles/zshrc b/home/dotfiles/zshrc index 3f2e26a..d978be9 100644 --- a/home/dotfiles/zshrc +++ b/home/dotfiles/zshrc @@ -74,7 +74,11 @@ section_end section "zsh-syntax-highlighting" if [ $ZSH_SYNTAX_HIGHLIGHTING -gt 0 ]; then log "Loading plugin..." - source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" + if [ -f "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]; then + source "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" + else + source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" + fi fi section_end