Last active
February 14, 2017 11:12
-
-
Save r4dian/a197d13af8f3836a48fee2d7b79526f0 to your computer and use it in GitHub Desktop.
Clean up MacOS shit off shared drives and stop it placing them (but only on Network volumes)
This file contains 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
cmd /c "del /s /q /f /a ._.*"; cmd /c "del /s /q /f /a .DS_STORE" | |
# ^ is this unwise ? ¯\_(ツ)_/¯ | |
# you can add /p to be prompted for each deletion |
This file contains 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
defaults write com.apple.desktopservices DSDontWriteNetworkStores true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment