Created
October 27, 2011 21:01
-
-
Save nmurthy/1320865 to your computer and use it in GitHub Desktop.
Alias all ruby bins in your rvm install to b<bin>, which bundle exec's it.
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
for i in $(rvm gemdir)/bin/*; do | |
bin=$(basename $i) | |
if (! which $bin &>/dev/null); then | |
echo "Aliasing b$bin to bundle exec $bin" | |
alias b$bin="bundle exec $bin" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment