]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/00_recompile
add ~/.local/bin to PATH
[zsh.git] / .zsh / zshrc / 00_recompile
index 05bb0f518ff4ef4f9f13ada3dc2200194cf32966..fedc0edb6bf30af078535bb60091e18de19c43ff 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/00_zrecompile
 #
 # recompile zsh snippets, if necessary
@@ -5,12 +6,12 @@
 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
 # Released under the terms of the Artistic Licence 2.0
 #
-# Source repository: http://git.madduck.net/v/etc/zsh.git
+# Source repository: git://git.madduck.net/etc/zsh.git
 #
 
-zrecompile $ZDOTDIR/** $ZVAR/** | while read pre file post; do
+zrecompile $ZDOTDIR/**/*(/N) $ZVARDIR/**/*(/N) | while read pre file post; do
     case "$post" in
-      succeeded) rm -f "${file%:}".old;;
+      succeeded*) rm -f "${file%:}".old;;
       *) :;;
     esac
     info "$pre ${file##$HOME/} $post"