Skip to content

Instantly share code, notes, and snippets.

@farrokhi
Created September 17, 2020 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farrokhi/0e1c101795ec8441beddf391f48759d1 to your computer and use it in GitHub Desktop.
Save farrokhi/0e1c101795ec8441beddf391f48759d1 to your computer and use it in GitHub Desktop.
Disable DS_Store file creation on USB disks and network shares
#!/bin/sh
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults read com.apple.desktopservices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment