Finds highlighters dir a little better

This commit is contained in:
Evan Pitstick 2013-03-08 00:57:16 -05:00
parent e5d8a50d36
commit 0fcc2629d2

View File

@ -198,7 +198,7 @@ _zsh_highlight_bind_widgets || {
} }
# Resolve highlighters directory location. # Resolve highlighters directory location.
_zsh_highlight_load_highlighters "${ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR:-${0:h}/highlighters}" || { _zsh_highlight_load_highlighters "${ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR:-$(dirname "$(readlink -f $0)")/highlighters}" || {
echo 'zsh-syntax-highlighting: failed loading highlighters, exiting.' >&2 echo 'zsh-syntax-highlighting: failed loading highlighters, exiting.' >&2
return 1 return 1
} }