3660b6f00b
that could be defined in `.zimrc`, when doing the zcompile in the completion module and when cleaning the cache. A custom `${zcompdump_file}` would not be zcompiled or cleaned from the cache without this correction. Also, use zrecompile instead of the custom logic to call zcompile.
9 lines
264 B
Text
9 lines
264 B
Text
#
|
|
# 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}
|
|
|
|
print 'To rebuild the completion cache, please restart your terminal'
|