plugin.zsh: Don't use ZERO, but 0 instead

This commit is contained in:
Sebastian Gniazdowski 2018-06-01 09:48:43 +02:00
parent 4cde68a196
commit 73e7ea47b9

View file

@ -7,8 +7,8 @@
# to ~/.zshrc. # to ~/.zshrc.
# #
ZERO="${(%):-%N}" # this gives immunity to functionargzero being unset 0="${(%):-%N}" # this gives immunity to functionargzero being unset
HSMW_REPO_DIR="${ZERO%/*}" HSMW_REPO_DIR="${0%/*}"
if [[ -z "$ZPLG_CUR_PLUGIN" && "${fpath[(r)$HSMW_REPO_DIR]}" != $HSMW_REPO_DIR ]]; then if [[ -z "$ZPLG_CUR_PLUGIN" && "${fpath[(r)$HSMW_REPO_DIR]}" != $HSMW_REPO_DIR ]]; then
fpath+=( "$HSMW_REPO_DIR" ) fpath+=( "$HSMW_REPO_DIR" )
fi fi