Skip to content

Instantly share code, notes, and snippets.

View cognivator's full-sized avatar

cognivator cognivator

View GitHub Profile
@cognivator
cognivator / exd_noclutter
Created April 4, 2016 22:45
Prevent OSX clutter on external storage
#!/bin/bash
# protect an ext drive (USB, memcard, etc) from the following files:
# .Spotlight-V* (Spotlight index)
# .Trashes (Deleted files)
# .fseventsd/* (journaling)
# .DS_Store (finder prefs... not implemented, yet)
# run this from the root of the drive that should be protected