Alias your common Ruby commands for a faster workflow
If you're a Rubyist, you probably use the likes of
and other commands frequently. And it's likely that you might be running them
bundle exec to execute them in the context of your project's bundle.
After finding I was spending a lot of time typing each of these commands, I
added a few aliases to my shell config to speed up my workflow:
alias rsp='bundle exec rspec' alias cuc='bundle exec cucumber' alias rak='bundle exec rake' alias mm='bundle exec middleman'
Paste these into your
~/.zshrc, restart your shell, and now
rspec test in the context of your bundle is as simple as:
Have other useful aliases? Post them in the comments below!