Use Bundler's binstubs!

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/

Pair with one of our expert developers to level up your skills with Coaching by thoughtbot. Save time learning best practices and techniques for reducing technical debt in Ember, Ruby, Haskell, and Go in 1-on-1 sessions tailored to your goals.