Fix zrep script to correctly load addons by moving the 'done' statement inside the 'if' block.
This commit is contained in:
parent
2ebb0fd3b7
commit
dbc9a8b6dd
2
zrep
2
zrep
@ -127,8 +127,8 @@ if [[ -n \${addons[@]} ]]; then
|
|||||||
if [[ -d \$addon ]] && [[ ! " \${fpath[*]} " =~ " \$addon " ]]; then
|
if [[ -d \$addon ]] && [[ ! " \${fpath[*]} " =~ " \$addon " ]]; then
|
||||||
fpath=(\$addon "\${fpath[@]}") # Prepend the new addon to fpath
|
fpath=(\$addon "\${fpath[@]}") # Prepend the new addon to fpath
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
autoload -Uz $(basename ${addon})
|
autoload -Uz $(basename ${addon})
|
||||||
|
done
|
||||||
else
|
else
|
||||||
echo "zrep: No addons enabled."
|
echo "zrep: No addons enabled."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user