a more simple and universal way (for zsh projects) to find highlight dir path
This commit is contained in:
parent
0fcc2629d2
commit
dffbab0c92
@ -198,7 +198,7 @@ _zsh_highlight_bind_widgets || {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Resolve highlighters directory location.
|
# Resolve highlighters directory location.
|
||||||
_zsh_highlight_load_highlighters "${ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR:-$(dirname "$(readlink -f $0)")/highlighters}" || {
|
_zsh_highlight_load_highlighters "${ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR:-${${0:A}:h}/highlighters}" || {
|
||||||
echo 'zsh-syntax-highlighting: failed loading highlighters, exiting.' >&2
|
echo 'zsh-syntax-highlighting: failed loading highlighters, exiting.' >&2
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user