Skip to content

Instantly share code, notes, and snippets.

@andrewmcdonough
Created February 23, 2012 12:43
Show Gist options
  • Save andrewmcdonough/1892666 to your computer and use it in GitHub Desktop.
Save andrewmcdonough/1892666 to your computer and use it in GitHub Desktop.
Nifty trick with bundler and rvm. In your app directory:
$ echo "export PATH=.bundle/bin:$PATH" >> .rvmrc
$ bundle install --binstubs=.bundle/bin
$ cd ..
$ cd <app-dir>
installs binstubs into app_dir/bin, and rvm adds ./bin to your path automatically (and takes it away again when you cd out of the app dir)
no more bundle exec
@urbanautomaton
Copy link

Once you've done this once, by the way, bundler writes a config file in the .bundle directory, so future bundle install calls will automatically put the binstubs in the same location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment