Use Bundler's binstubs!

Gabe Berke-Williams

If you’re not using bundler’s binstubs with RVM integration yet, you should give it a try! This means you don’t have to type “bundle exec” ever again.

Setup:

  • One time, run chmod +x $rvm_path/hooks/after_cd_bundler
  • Once for each project, run bundle install -—binstubs

With RVM integration enabled, the bin directory is added to your path each time you cd into a project directory with binstubs. That means you can just run rake. If you aren’t ignoring the bin directory in your project, you should do so:

# .gitignore
bin/