# Source repository: http://git.madduck.net/v/etc/zsh.git
#
-if [ -n "$ZDOTDIR" ]; then
- command rm -f $ZDOTDIR/**/*.zwc(.N) $ZDOTDIR/**/.*.zwc(.N) ZVAR/**/*.zwc(.N)
- for f ($ZDOTDIR/.*(@) $ZDOTDIR/*(.) $ZDOTDIR/**/*(.) $ZVAR/comp-$HOST) \
- zcompile $f
+if [ -n "$ZDOTDIR" ] && [ -d "$ZDOTDIR" ]; then
+ rm -f $ZDOTDIR/**/*.zwc(D.N)
+ for f ($ZDOTDIR/*(D.,@) $ZDOTDIR/**/*(.)) \
+ [[ $f:t != .gitignore ]] && 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