Sjmarf to Programmer [email protected] • 2 days ago.DS_Storesh.itjust.worksmessage-square148fedilinkarrow-up11.67K
arrow-up11.67Kimage.DS_Storesh.itjust.worksSjmarf to Programmer [email protected] • 2 days agomessage-square148fedilink
minus-square@[email protected]linkfedilink45•2 days agodefaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE Helps a bit.
minus-squareM.intlinkfedilink1•1 day agoDon’t forget: defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
minus-square@[email protected]linkfedilink8•edit-22 days agoyou can also delete them recursively with find . -name '*.DS_Store' -type f -print -delete (adapted from this script)
minus-squareM.intlinkfedilink9•2 days agoWhy 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.
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
Helps a bit.
Don’t forget:
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
you can also delete them recursively with
find . -name '*.DS_Store' -type f -print -delete
(adapted from this script)
Why is there a
*
in front ofDS_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.