Export ASTZWEIG_ZSHLIB in install.sh

This commit is contained in:
Rezart Qelibari
2022-02-13 22:27:49 +01:00
parent ca8b8d0b7a
commit 302956c7e1

View File

@@ -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[@]}"
}