No more 'bundle exec'

27 Dec 2013
1 minute read

Of course you’re tired of typing bundle exec every time you want to start your Rails App, build your Middleman static website or invoke your Sinatra webapp.

With Ruby 2.1.0 around and Rubygems updated to 2.0.0, you have yet another decent way of omitting this command from now on.

bundle exec

How to

Just set RUBYGEMS_GEMDEPS=- as env variable via your shells configuration file.

This will load gem activation information from a gemdeps file, e.g. your Gemfile in the current working directory.