You can `bundle e` instead of `bundle exec`

okuramasafumi

OKURA Masafumi

Posted on June 5, 2020

You can `bundle e` instead of `bundle exec`

OK, you're tired of typing bundle exec all the time when you develop Ruby/Rails application. I'd suggest defining an alias for it, just like:

# Save this in your shell profile such as .bashrc or .zshrc
alias be="bundle exec"

be rspec # bundle exec rspec
Enter fullscreen mode Exit fullscreen mode

But if you're lazy enough, you don't have to anything. Just type

bundle e rspec
Enter fullscreen mode Exit fullscreen mode

and it works! Enjoy saving time!

💖 💪 🙅 🚩
okuramasafumi
OKURA Masafumi

Posted on June 5, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related