LucasLarson/dotfiles

include crufty `.zcompdump` files in `cleanup`

LucasLarson opened this issue · 1 comments

this part of the cleanup function should add a line

-name '.zcompdump-*' or \

to remove cruftily named .zcompdump files such as .zcompdump-oin-5.4.2 or .zcompdump-LPhoneXSMax-5.8.

# delete thumbnail cache files
find -- . -type f \( \
-name '.DS_Store' -or \
-name 'Desktop.ini' -or \
-name 'desktop.ini' -or \
-name 'Thumbs.db' -or \
-name 'thumbs.db' \
\) \
$verbose -delete

# POSIX
# https://mywiki.wooledge.org/BashPitfalls?rev=531#line-1-5
for file in ./*.mp3; do
    [ -e "$file" ] || continue
    some command "$file"
done