From ed20aee17dabe3294ba65f0ef54a9a22ed3252cd Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" <137705289+trbernstein@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:27:18 +0200 Subject: [PATCH] Fix path error while autoloading zwc files --- modules/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lib.sh b/modules/lib.sh index 90d0e9e..1ca2e19 100644 --- a/modules/lib.sh +++ b/modules/lib.sh @@ -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 }