DEV Community

loading...

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

okuramasafumi profile image OKURA Masafumi ・1 min read

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!

Discussion (0)

pic
Editor guide