X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/61f315793f3fcd7d22456d2a0057efbf88191fda..c3bb27de5d481b62b216517098064472dd11b9c6:/.zsh/zprofile/40_zcompile?ds=sidebyside diff --git a/.zsh/zprofile/40_zcompile b/.zsh/zprofile/40_zcompile index 174a757..925c3de 100644 --- a/.zsh/zprofile/40_zcompile +++ b/.zsh/zprofile/40_zcompile @@ -10,13 +10,22 @@ if [ -n "$ZDOTDIR" ] && [ -d "$ZDOTDIR" ]; then rm -f $ZDOTDIR/**/*.zwc{,.old}(D.N) - for f ($ZDOTDIR/*(D.,@) $ZDOTDIR/**/*(.)) \ - [[ $f:t != .gitignore ]] && zcompile $f + for f in $ZDOTDIR/*(D.,@) $ZDOTDIR/**/*(.); do + case "$f:t" in + .gitignore|.*.sw?) continue;; + esac + zcompile $f + done fi if [ -n "$ZVARDIR" ] && [ -d "$ZVARDIR" ]; then rm -f $ZVARDIR/**/*.zwc{,.old}(.N) - for f ($ZVARDIR/comp*(.N)) zcompile $f + for f in $ZVARDIR/comp*(.N); do + case "$f:t" in + .gitignore|.*.sw?) continue;; + esac + zcompile $f + done fi # vim:ft=zsh