Last Updated: January 06, 2019
· mpapis

no more `bundle exec`

To avoid bundle exec use my gem rubygems-bundler it will automatically detect if Bundler.setup should be run.


gem install rubygems-bundler
gem regenerate_binstubs # only once

The gem is already disributed with RVM so in most cases you should have it by default, just in case run once:

gem regenerate_binstubs # only once

You can find more information on the project page: or on my blog:

3 Responses
Add your response

Instead of bundle exec, why not just bin (--binstubs)?

over 1 year ago ·

@justinko binstubs require an additional action (adding to PATH), it's not fully safe as someone can add bin/rake to your project with malicious code. Also binstubs are less intelligent, it's just a brute force - when in project use binstubs, you would need to reedit your PATH to not include ./bin/ in case you would like to run command that is in Gemfile but you do no want to run it in context of the project.

over 1 year ago ·

Wow that's an amazing tip !

over 1 year ago ·