zsh:autoload: Make $d local

This commit is contained in:
2025-03-25 11:04:05 +01:00
parent 2363545489
commit 1d2e24cf4d

View File

@@ -9,6 +9,8 @@ autoload -Uz run-help run-help-git zmv
# Load autoloadable functions
if [[ -d "$ZDOTDIR/autoload" ]]; then
local d
# Include all wrapper scripts if their wrapped command exists
for d in "$ZDOTDIR/autoload/"**/wrapper(/N); do
fpath=("$d" $fpath)