From 2ed60c52692b50d605703dcf9e0deaf985e11700 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 10 May 2008 00:10:54 +0100 Subject: [PATCH] do not die if compiling finds no files --- .zsh/zprofile/40_zcompile | 2 +- .zsh/zshrc/00_recompile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.zsh/zprofile/40_zcompile b/.zsh/zprofile/40_zcompile index 23fd063..91b133a 100644 --- a/.zsh/zprofile/40_zcompile +++ b/.zsh/zprofile/40_zcompile @@ -15,7 +15,7 @@ fi if [ -n "$ZVARDIR" ] && [ -d "$ZVARDIR" ]; then rm -f $ZVARDIR/**/*.zwc(.N) - for f ($ZVARDIR/comp*(.)) zcompile $f + for f ($ZVARDIR/comp*(.N)) zcompile $f fi # vim:ft=zsh diff --git a/.zsh/zshrc/00_recompile b/.zsh/zshrc/00_recompile index 37c607c..b374740 100644 --- a/.zsh/zshrc/00_recompile +++ b/.zsh/zshrc/00_recompile @@ -8,7 +8,7 @@ # Source repository: http://git.madduck.net/v/etc/zsh.git # -zrecompile $ZDOTDIR/** $ZVARDIR/** | 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;; *) :;; -- 2.39.2