Wynn Netherland changelog.com/posts

noexec - Run Ruby scripts without bundle exec

We’ve covered a few of Josh Hull’s projects on this blog. His latest is so simple, yet quite useful. If you use Bundler, you probably spend a good part of your day running bundle exec. I even use a zsh alias be for this purpose. Well now, we can stop.

With noexec, Josh has created a small script that will walk up your directory structure until it can find a Gemfile. If the executable you’re running is in that Gemfile, it will use it instead of Bundle.setup.

Simply install the gem:

gem install noexec

… and be sure to export the following environment variable in your shell profile:

RUBYOPT="-r`noexec`"

Check the source on GitHub for more.


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00