Skip to content

Instantly share code, notes, and snippets.

@viktorklang
Last active May 14, 2018 07:39
Show Gist options
  • Save viktorklang/0526c776be43160f82ef17f84e61beaa to your computer and use it in GitHub Desktop.
Save viktorklang/0526c776be43160f82ef17f84e61beaa to your computer and use it in GitHub Desktop.
Adds all your sbt target dirs as path excludes for Time Machine
#WARNING: Use at your own risk. No warranties expressed or implied. YMMV. Drive responsibly. Eat healthy.
#First, `cd` into the parent dir for all of your `sbt`/`maven` projects (I assume you have one of those)
find "$(cd ..; pwd)" -type d -name "target" -print0 | sudo xargs -0 tmutil addexclusion -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment