dotfiles/.config/zsh/autoload/zwcpurge

8 lines
216 B
Plaintext

## Purge all compiled zwc files
function zwcpurge () {
autoload -Uz zrecompile
for zsh_file in $(find ${ZDOTDIR} -maxdepth 3 -type f \( -name "*.zwc" -o -name "*.zwc.old" \)); do
rm -f ${zsh_file}
done
}