ZSH: Fix zwcautocompile function
This commit is contained in:
parent
154209ffd7
commit
f7baa29734
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user