DEV Community

OKURA Masafumi
OKURA Masafumi

Posted on

3 2

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay