#macOS find는 -delete를 주면 -prune을 무시하거나 우회해버린다. OMZP::macos에서 제공하는 rmdsstore 함수를 개선하려다 찾은 현상.
If you have a fediverse account, you can reply to this note from your own instance. Search https://hackers.pub/ap/notes/01999d77-bd68-7c9c-8a54-b0447c2c9b47 on your instance and reply to it.
그래서 살짝 손 봄
function rmdsstore() {
find "${@:-.}" \
-name Library -prune -o -name OrbStack -prune -o \
-type f -name .DS_Store \
-print0 | xargs -0 rm
}