]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zprofile/40_zcompile
fix compile selection glob
[zsh.git] / .zsh / zprofile / 40_zcompile
index 91b133af00427fc4fbddfee967f5fe480322d3cf..1d9718fc234ae3b10c36bc69ad5e55ab32524b8e 100644 (file)
@@ -10,7 +10,8 @@
 
 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