Skip to content

Instantly share code, notes, and snippets.

@scottwater
Created October 20, 2011 12:55
Show Gist options
  • Save scottwater/1301070 to your computer and use it in GitHub Desktop.
Save scottwater/1301070 to your computer and use it in GitHub Desktop.
Easy bundle exec (I owe someone else credit for this).
function be {
if [[ -a Gemfile ]]; then
bundle exec $*
else
command $*
fi
}
alias heroku="be heroku"
alias rake="be rake"
alias guard="be guard"
alias powder="be powder"
alias rspec="be rspec"
alias r="be rails"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment