if [ -n "$ZDOTDIR" ] && [ -d "$ZDOTDIR" ]; then
rm -f $ZDOTDIR/**/*.zwc(D.N)
- for f ($ZDOTDIR/*[^$ZDOTDIR/.gitignore](D.,@) $ZDOTDIR/**/*(.)) zcompile $f
+ for f ($ZDOTDIR/*(D.,@) $ZDOTDIR/**/*(.)) \
+ [[ $f:t != .gitignore ]] && zcompile $f
fi
if [ -n "$ZVARDIR" ] && [ -d "$ZVARDIR" ]; then