Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 days ago.DS_Storesh.itjust.worksimagemessage-square153fedilinkarrow-up11.68Karrow-down16
arrow-up11.68Karrow-down1image.DS_Storesh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 days agomessage-square153fedilink
minus-squareskuzz@discuss.tchncs.delinkfedilinkarrow-up45·2 days agodefaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE Helps a bit.
minus-squareM.int@lemm.eelinkfedilinkarrow-up1·1 day agoDon’t forget: defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
minus-squarecantankerous_cashew@lemmy.worldlinkfedilinkarrow-up8·edit-22 days agoyou can also delete them recursively with find . -name '*.DS_Store' -type f -print -delete (adapted from this script)
minus-squareM.int@lemm.eelinkfedilinkarrow-up9·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.