Use multiple paths to find and load zsh-syntax-highlighting.
parent
b846e05dcf
commit
7cdfdea65f
|
@ -74,7 +74,11 @@ section_end
|
||||||
section "zsh-syntax-highlighting"
|
section "zsh-syntax-highlighting"
|
||||||
if [ $ZSH_SYNTAX_HIGHLIGHTING -gt 0 ]; then
|
if [ $ZSH_SYNTAX_HIGHLIGHTING -gt 0 ]; then
|
||||||
log "Loading plugin..."
|
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
|
fi
|
||||||
section_end
|
section_end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue