#!/usr/bin/env zsh ################################################################################ # # This file is autoloaded by .zshrc, and actually loaded when executed # ################################################################################ emulate -L zsh setopt glob_dots # * should match files starting with . local -a files=( ~/.zshenv.zwc(-.N) {$ZDOTDIR,$ZCACHEDIR,$ZDATADIR,$ZSTATEDIR}/**/*.zwc(-.N) ) local f for f in $files; rm -f $f && print "removed '$f'" # Yes, I could have used `rm -vf`, but -v is not POSIX, so I don't know if `rm` will support it everywhere. # END OF FILE #################################################################