ZSH: Fix zwcautocompile function

This commit is contained in:
Christian Baer 2024-10-28 15:02:52 +01:00
parent 154209ffd7
commit f7baa29734

View File

@ -3,7 +3,7 @@
function zwcautocompile () { function zwcautocompile () {
autoload -Uz zrecompile autoload -Uz zrecompile
for zsh_file in $(find ${ZDOTDIR} -type f -maxdepth 3 \( -name "*.zsh" -o -name ".zlogin" -o -name ".zshrc" \) ! -name "*.zwc" ! -name "*.zwc.old"); do for zsh_file in $(find ${ZDOTDIR} -maxdepth 3 -type f \( -name "*.zsh" -o -name ".zlogin" -o -name ".zshrc" \) ! -name "*.zwc" ! -name "*.zwc.old"); do
zrecompile -pq $zsh_file && rm -f $zsh_file.zwc.old zrecompile -pq $zsh_file && rm -f $zsh_file.zwc.old
done done