From eee681bae9a12b8818b291f553214f41cfe6d643 Mon Sep 17 00:00:00 2001 From: Rezart Qelibari Date: Fri, 28 Jan 2022 17:46:17 +0100 Subject: [PATCH] Limit find to maxdepth 1 when searching zshlib --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4137c8a..9ae19c1 100755 --- a/install.sh +++ b/install.sh @@ -11,7 +11,7 @@ function ensureDocopts() { function autoloadZShLib() { FPATH="`pwd`/zshlib:${FPATH}" - local funcNames=("${(@f)$(find ./zshlib -type f -perm +u=x | awk -F/ '{ print $NF }')}") + local funcNames=("${(@f)$(find ./zshlib -type f -perm +u=x -maxdepth 1 | awk -F/ '{ print $NF }')}") autoload -Uz "${funcNames[@]}" }