Skip to content

Instantly share code, notes, and snippets.

@13k
Created September 17, 2010 19:52
Show Gist options
  • Select an option

  • Save 13k/584821 to your computer and use it in GitHub Desktop.

Select an option

Save 13k/584821 to your computer and use it in GitHub Desktop.
function prefix_with_bundler() {
[ -f Gemfile ] && pre="bundle exec" || pre=""
$pre "$@"
}
alias rbe='prefix_with_bundler'
alias rsv='rbe thin start'
alias rup='rbe rackup -s thin'
alias rcon='[ -f Gemfile ] && rails="bundle exec rails" || rails=`which rails 2> /dev/null`; [ -z "$rails" ] && : || $rails --version | cut -d" " -f2 | grep -q "^3" && $rails console || script/console'
alias bundle1='bundle _1.0.0_'
alias bundle0='bundle _0.9.26_'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment