Limit find to maxdepth 1 when searching zshlib
This commit is contained in:
@@ -11,7 +11,7 @@ function ensureDocopts() {
|
|||||||
|
|
||||||
function autoloadZShLib() {
|
function autoloadZShLib() {
|
||||||
FPATH="`pwd`/zshlib:${FPATH}"
|
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[@]}"
|
autoload -Uz "${funcNames[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user