X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/dd0ae6042dcd690fa561f6e5a610b60ab10f85d5..2d4b8dc68dad03ea82bbc7e00cd14146ef488488:/.zsh/zshrc/00_recompile?ds=sidebyside

diff --git a/.zsh/zshrc/00_recompile b/.zsh/zshrc/00_recompile
index 9589a6b..05bb0f5 100644
--- a/.zsh/zshrc/00_recompile
+++ b/.zsh/zshrc/00_recompile
@@ -8,6 +8,12 @@
 # Source repository: http://git.madduck.net/v/etc/zsh.git
 #
 
-zrecompile $ZDOTDIR $ZVAR
+zrecompile $ZDOTDIR/** $ZVAR/** | while read pre file post; do
+    case "$post" in
+      succeeded) rm -f "${file%:}".old;;
+      *) :;;
+    esac
+    info "$pre ${file##$HOME/} $post"
+  done
 
 # vim:ft=zsh