Skip to content

Instantly share code, notes, and snippets.

@nmurthy
Created October 27, 2011 21:01
Show Gist options
  • Save nmurthy/1320865 to your computer and use it in GitHub Desktop.
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.
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