Created
June 13, 2014 17:36
-
-
Save winkler1/68710eae044456d78d94 to your computer and use it in GitHub Desktop.
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
# 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