Created
August 20, 2020 13:10
-
-
Save brucebentley/493e44cae089f998dfeddfc746d31d44 to your computer and use it in GitHub Desktop.
Remove all .DS_Store files that currently exist & prevent them from being generated anymore.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Clean All | |
| do shell script "sudo find / -name ".DS_Store" -depth -exec rm {} \;" | |
| # Restrict Generating | |
| do shell script "defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE" | |
| do shell script "defaults delete com.apple.desktopservices DSDontWriteNetworkStores" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment