Skip to content

Instantly share code, notes, and snippets.

@ifthenelse
Forked from runspired/.bash_profile
Last active September 16, 2016 14:38
Show Gist options
  • Save ifthenelse/fde67653cd9fa0216c60f665a6add376 to your computer and use it in GitHub Desktop.
Save ifthenelse/fde67653cd9fa0216c60f665a6add376 to your computer and use it in GitHub Desktop.
Aliases to exclude node_modules and bower_components from Spotlight search (https://gist.github.com/runspired/b5552be57d3c8a5a7821/) and Time Machine backups (https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man8/tmutil.8.html)
alias nom='npm cache clean && rm -rf node_modules && mkdir node_modules && tmutil addexclusion $(pwd)/node_modules && touch node_modules/.metadata_never_index && npm install'
alias bom='bower cache clean && rm -rf bower_components && mkdir bower_components && tmutil addexclusion $(pwd)/bower_components && touch bower_components/.metadata_never_index && bower install'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment