]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/00_recompile
chdir back to the previous dir
[zsh.git] / .zsh / zshrc / 00_recompile
index 9589a6bf0fc13149ac805328409cd26cd1988e0c..37c607c69558ccc1253bdaee0c9c1dffee705dff 100644 (file)
@@ -8,6 +8,12 @@
 # Source repository: http://git.madduck.net/v/etc/zsh.git
 #
 
-zrecompile $ZDOTDIR $ZVAR
+zrecompile $ZDOTDIR/** $ZVARDIR/** | while read pre file post; do
+    case "$post" in
+      succeeded) rm -f "${file%:}".old;;
+      *) :;;
+    esac
+    info "$pre ${file##$HOME/} $post"
+  done
 
 # vim:ft=zsh