Skip to content

Instantly share code, notes, and snippets.

@PyYoshi
Forked from peterdemartini/command.sh
Created September 25, 2017 04:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PyYoshi/2d6d1eadf745e3fc5274c7b0a8b00983 to your computer and use it in GitHub Desktop.
Save PyYoshi/2d6d1eadf745e3fc5274c7b0a8b00983 to your computer and use it in GitHub Desktop.
Exclude node_modules in timemachine
find `pwd` -type d -maxdepth 3 -name node_modules | xargs -n1 sudo tmutil addexclusion -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment