From 302956c7e1130d182bbff12063d317d3e72c989d Mon Sep 17 00:00:00 2001 From: Rezart Qelibari Date: Sun, 13 Feb 2022 22:27:49 +0100 Subject: [PATCH] Export ASTZWEIG_ZSHLIB in install.sh --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 53b00bc..3c6b980 100755 --- a/install.sh +++ b/install.sh @@ -10,8 +10,9 @@ function ensureDocopts() { } function autoloadZShLib() { - FPATH="`pwd`/zshlib:${FPATH}" - local funcNames=("${(@f)$(find ./zshlib -type f -perm +u=x -maxdepth 1 | awk -F/ '{ print $NF }')}") + export ASTZWEIG_ZSHLIB="`pwd`/zshlib" + FPATH="${ASTZWEIG_ZSHLIB}:${FPATH}" + local funcNames=("${(@f)$(find "${ASTZWEIG_ZSHLIB}" -type f -perm +u=x -maxdepth 1 | awk -F/ '{ print $NF }')}") autoload -Uz "${funcNames[@]}" }