X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/77bc157163da3f5f9fd2c300733f505ffce8763c..d789c258ab9b1764f6bcf8fd30b583efab2a0381:/.zsh/zprofile/40_zcompile?ds=inline diff --git a/.zsh/zprofile/40_zcompile b/.zsh/zprofile/40_zcompile index 0074768..174a757 100644 --- a/.zsh/zprofile/40_zcompile +++ b/.zsh/zprofile/40_zcompile @@ -8,10 +8,15 @@ # Source repository: http://git.madduck.net/v/etc/zsh.git # -if [ -n "$ZDOTDIR" ]; then - command 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{,.old}(D.N) + for f ($ZDOTDIR/*(D.,@) $ZDOTDIR/**/*(.)) \ + [[ $f:t != .gitignore ]] && zcompile $f +fi + +if [ -n "$ZVARDIR" ] && [ -d "$ZVARDIR" ]; then + rm -f $ZVARDIR/**/*.zwc{,.old}(.N) + for f ($ZVARDIR/comp*(.N)) zcompile $f fi # vim:ft=zsh