Skip to content

Instantly share code, notes, and snippets.

@r4dian
Last active February 14, 2017 11:12
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 r4dian/a197d13af8f3836a48fee2d7b79526f0 to your computer and use it in GitHub Desktop.
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)
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
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