X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/b9574517452ddcb25f147833da0f7f3d03dbd2a3..2ed60c52692b50d605703dcf9e0deaf985e11700:/.zsh/zprofile/40_zcompile diff --git a/.zsh/zprofile/40_zcompile b/.zsh/zprofile/40_zcompile index 967199a..91b133a 100644 --- a/.zsh/zprofile/40_zcompile +++ b/.zsh/zprofile/40_zcompile @@ -8,10 +8,14 @@ # Source repository: http://git.madduck.net/v/etc/zsh.git # -if [ -n "$ZDOTDIR" ]; then - rm -f $ZDOTDIR/**/*.zwc(.N) $ZDOTDIR/**/.*.zwc(.N) $ZVARDIR/**/*.zwc(.N) - for f ($ZDOTDIR/.*(@) $ZDOTDIR/*(.) $ZDOTDIR/**/*(.) $ZVARDIR/comp-$HOST) \ - zcompile $f +if [ -n "$ZDOTDIR" ] && [ -d "$ZDOTDIR" ]; then + rm -f $ZDOTDIR/**/*.zwc(D.N) + for f ($ZDOTDIR/*[^$ZDOTDIR/.gitignore](D.,@) $ZDOTDIR/**/*(.)) zcompile $f +fi + +if [ -n "$ZVARDIR" ] && [ -d "$ZVARDIR" ]; then + rm -f $ZVARDIR/**/*.zwc(.N) + for f ($ZVARDIR/comp*(.N)) zcompile $f fi # vim:ft=zsh