Sjmarf to Programmer Humor@programming.dev • 2 months ago.DS_Storesh.itjust.worksimagemessage-square163fedilinkarrow-up11.72Karrow-down16
arrow-up11.72Karrow-down1image.DS_Storesh.itjust.worksSjmarf to Programmer Humor@programming.dev • 2 months agomessage-square163fedilink
minus-square@skuzz@discuss.tchncs.delinkfedilink43•2 months agodefaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE Helps a bit.
minus-square@cantankerous_cashew@lemmy.worldlinkfedilink8•edit-22 months agoyou can also delete them recursively with find . -name '*.DS_Store' -type f -print -delete (adapted from this script)
minus-squareM.intlinkfedilink9•2 months 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.
minus-squareM.intlinkfedilink1•2 months agoDon’t forget: defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
Helps a bit.
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.Don’t forget:
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true