From 6cc382543768d72f48f9f131b7ef1640e9130576 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Wed, 27 Sep 2017 16:32:22 -0500 Subject: [PATCH] [tools] Also remove *.zwc.old files from cache as zrecompile also generates these files. --- tools/zim_clean_cache | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/zim_clean_cache b/tools/zim_clean_cache index 9375550..69f8eb8 100644 --- a/tools/zim_clean_cache +++ b/tools/zim_clean_cache @@ -2,8 +2,8 @@ # zim_clean_cache - removes all zcompiled files # -find ${ZIM_HOME} -iname '*.zwc' -delete -rm -f ${ZDOTDIR:-${HOME}}/.zshrc.zwc -rm -f ${ZDOTDIR:-${HOME}}/${zcompdump_file:-.zcompdump}{,.zwc} +find ${ZIM_HOME} \( -name '*.zwc' -or -name '*.zwc.old' \) -delete +rm -f ${ZDOTDIR:-${HOME}}/.zshrc.zwc{,.old} +rm -f ${ZDOTDIR:-${HOME}}/${zcompdump_file:-.zcompdump}{,.zwc{,.old}} print 'To rebuild the completion cache, please restart your terminal'