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