Skip to content

Instantly share code, notes, and snippets.

@steveyken
Created August 13, 2015 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveyken/a61efd3f372d7f3dda7a to your computer and use it in GitHub Desktop.
Save steveyken/a61efd3f372d7f3dda7a to your computer and use it in GitHub Desktop.
Bash project install functions
npm_install() {
if [ -e package.json ]; then npm install; fi
}
bower_install() {
if [ -e bower.json ]; then bower install; fi
}
bundle_install() {
if [ -e Gemfile ]; then bundle install; fi
}
alias i="bundle_install;npm_install;bower_install"
@steveyken
Copy link
Author

Works for nodejs / ember / ruby / rails

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