Autoload zshlib functions for shellspec

This commit is contained in:
Rezart Qelibari
2022-02-04 14:10:19 +01:00
parent 765a35e4d0
commit 366047fb20

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env zsh
FPATH="`pwd`/zshlib:${FPATH}"
local funcNames=("${(@f)$(find . -type f -perm +u=x -maxdepth 1 | awk -F/ '{ print $NF }')}")
local funcNames=("${(@f)$(find ./zshlib -type f -perm +u=x -maxdepth 1 | awk -F/ '{ print $NF }')}")
autoload -Uz "${funcNames[@]}"