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
Simply install the gem:
gem install noexec
… and be sure to export the following environment variable in your shell profile:
Check the source on GitHub for more.