Skip to content

Instantly share code, notes, and snippets.

@winkler1
Created June 13, 2014 17:36
Show Gist options
  • Save winkler1/68710eae044456d78d94 to your computer and use it in GitHub Desktop.
Save winkler1/68710eae044456d78d94 to your computer and use it in GitHub Desktop.
# Install bower, node, rails gems.
# Put this into your ~/.bash_profile
function inst() {
set -m # fork things in separate jobs
if [ -e 'bower.json' ]
then
bower install &
fi
if [ -e 'package.json' ]
then
npm install &
fi
if [ -e 'Gemfile' ]
then
bundle install &
fi
# Wait for all parallel jobs to finish
while [ 1 ]; do fg 2> /dev/null; [ $? == 1 ] && break; done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment