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/

About thoughtbot

We've been helping engineering teams deliver exceptional products for over 20 years. Our designers, developers, and product managers work closely with teams to solve your toughest software challenges through collaborative design and development. Learn more about us.