ab3b20f8cd
Consider the `zcompdump_file` variable, that could be defined in `.zimrc`, when cleaning the cache. A custom zcompdump_file would not be cleaned from the cache without this correction. Also remove *.zwc.old files from cache, as zrecompile also generates these. Closes #218
9 lines
305 B
Text
9 lines
305 B
Text
#
|
|
# zim_clean_cache - removes all zcompiled files
|
|
#
|
|
|
|
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'
|