[tools] Also remove *.zwc.old files from cache

as zrecompile also generates these files.
This commit is contained in:
Eric Nielsen 2017-09-27 16:32:22 -05:00
parent 3660b6f00b
commit 6cc3825437
1 changed files with 3 additions and 3 deletions

View File

@ -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'