Tag Archives: rbenv

Skip bundle exec when using rbenv

If you are using rbenv and bundler like I did, you must be feeling tired writing ‘bundle exec blabla’ everytime you use executables in your rails project. Fortunately, you don’t have to. You can use this rbenv plugin to automatically bundle exec your command. By default this plugin ignore ‘gem’ command, since normally you shouldn’t run gem with bundle exec.

While we are at it, another useful rbenv plugin is rbenv-gem-rehash. That plugin automatically run ‘rbenv rehash’ everytime you install a new gem. So, you don’t need to rehash everytime you run ‘bundle install’

This is a short post, but hopefully it’s usefull enough. See you!