1
0
Fork 0
mirror of synced 2024-07-26 18:11:12 -04:00

[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

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'