DEV Community

OKURA Masafumi
OKURA Masafumi

Posted on

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!

Top comments (0)