1
0
Fork 0
mirror of synced 2024-11-30 03:05:35 -05:00
zimfw/tools/zim_clean_cache
Eric Nielsen 3660b6f00b [completion] Consider the zcompdump_file variable
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.
2017-09-27 07:39:53 -05:00

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'