Fix path error while autoloading zwc files
This commit is contained in:
@@ -8,7 +8,7 @@ function autoloadZShLib() {
|
|||||||
local funcNames=($(find "${ASTZWEIG_ZSHLIB}" -type f -perm +u=x -maxdepth 1 | awk -F/ '{ print $NF }'))
|
local funcNames=($(find "${ASTZWEIG_ZSHLIB}" -type f -perm +u=x -maxdepth 1 | awk -F/ '{ print $NF }'))
|
||||||
autoload -Uz ${funcNames}
|
autoload -Uz ${funcNames}
|
||||||
elif [[ -f ${ASTZWEIG_ZSHLIB} ]]; then
|
elif [[ -f ${ASTZWEIG_ZSHLIB} ]]; then
|
||||||
autoload -Uzw ${ASTZWEIG_ZSHLIB:t}
|
autoload -Uzw ${ASTZWEIG_ZSHLIB}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user