Fix path error while autoloading zwc files

This commit is contained in:
T. R. Bernstein
2024-07-30 04:27:18 +02:00
parent d1f867e29f
commit ed20aee17d

View File

@@ -8,7 +8,7 @@ function autoloadZShLib() {
local funcNames=($(find "${ASTZWEIG_ZSHLIB}" -type f -perm +u=x -maxdepth 1 | awk -F/ '{ print $NF }'))
autoload -Uz ${funcNames}
elif [[ -f ${ASTZWEIG_ZSHLIB} ]]; then
autoload -Uzw ${ASTZWEIG_ZSHLIB:t}
autoload -Uzw ${ASTZWEIG_ZSHLIB}
fi
}