Skip to content

Instantly share code, notes, and snippets.

@runspired
Last active February 6, 2023 14:56
Show Gist options
  • Save runspired/b5552be57d3c8a5a7821 to your computer and use it in GitHub Desktop.
Save runspired/b5552be57d3c8a5a7821 to your computer and use it in GitHub Desktop.
Make Alfred / Spotlight ignore node_modules and bower_components
alias nom='npm cache clean && rm -rf node_modules && mkdir node_modules && touch node_modules/.metadata_never_index && npm install'
alias bom='bower cache clean && rm -rf bower_components && mkdir bower_components && touch bower_components/.metadata_never_index && bower install'
@runspired
Copy link
Author

alias nom='rm -rf node_modules && mkdir node_modules && touch node_modules/.metadata_never_index && a=`npm get progress` && npm set progress=false && npm install && npm set progress=$a'
alias nom-cache='npm cache clean && nom'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment