From 5838b305850a8bd1e0d7d4701986fae648858a08 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 5 May 2008 21:51:12 +0100 Subject: [PATCH 1/1] remove backup files on successful recompile --- .zsh/zshrc/00_recompile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.zsh/zshrc/00_recompile b/.zsh/zshrc/00_recompile index 9589a6b..6f5b2e3 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 + echo "$pre ${file##$HOME/} $post" >&2 + done # vim:ft=zsh -- 2.39.5