#macOS find는 -delete를 주면 -prune을 무시하거나 우회해버린다. OMZP::macos에서 제공하는 rmdsstore 함수를 개선하려다 찾은 현상.
그래서 살짝 손 봄
function rmdsstore() {
find "${@:-.}" \
-name Library -prune -o -name OrbStack -prune -o \
-type f -name .DS_Store \
-print0 | xargs -0 rm
}
If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/01999d78-bf44-768c-b6ed-6b281c3fa6bf on your instance and quote it. (Note that quoting is not supported in Mastodon.)