Fix zrep script to correctly load addons by moving the 'done' statement inside the 'if' block.

This commit is contained in:
Stig-Ørjan Smelror 2024-03-10 10:02:08 +01:00
parent 2ebb0fd3b7
commit dbc9a8b6dd

2
zrep
View File

@ -127,8 +127,8 @@ if [[ -n \${addons[@]} ]]; then
if [[ -d \$addon ]] && [[ ! " \${fpath[*]} " =~ " \$addon " ]]; then
fpath=(\$addon "\${fpath[@]}") # Prepend the new addon to fpath
fi
done
autoload -Uz $(basename ${addon})
done
else
echo "zrep: No addons enabled."
fi