Skip to content

Instantly share code, notes, and snippets.

@youngyou
Forked from peterdemartini/command.sh
Last active May 3, 2018 14:43
Show Gist options
  • Save youngyou/f4402020ae59dc7a03ea6b12b59908df to your computer and use it in GitHub Desktop.
Save youngyou/f4402020ae59dc7a03ea6b12b59908df to your computer and use it in GitHub Desktop.
Exclude node_modules in timemachine
find `pwd` -maxdepth 3 -type d -name 'node_modules' | xargs -n 1 tmutil addexclusion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment