this post was submitted on 28 Jan 2025
1681 points (99.6% liked)

Programmer Humor

20188 readers
1314 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] skuzz@discuss.tchncs.de 45 points 2 days ago (2 children)

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

Helps a bit.

[–] MissingInteger@lemm.ee 1 points 1 day ago

Don't forget:

defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
[–] cantankerous_cashew@lemmy.world 8 points 2 days ago* (last edited 2 days ago) (1 children)

you can also delete them recursively with

find . -name '*.DS_Store' -type f -print -delete

(adapted from this script)

[–] MissingInteger@lemm.ee 9 points 2 days ago

Why is there a * in front of DS_Store?
Seems like fastly made a small mistake find . -name '.DS_Store' -type f -print -delete would just match the exact file and is faster.