-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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