Check out the incredible shortcut Lance Armstrong takes in the above clip.
As developers, we should try to shortcut as smoothly as Lance does. You might not get cheered on quite as much—but then again, you have a lot more shortcut opportunities!
Shortcuts and Development Workflow
The quicker I can go from intent to action, the happier I am with my development workflow. Below are two tools I rely on to build shortcuts as effortlessly as possible.
An Organic, Evolving .bashrc
The best general-purpose shortcut mechanism is aliases in your
.bashrc. I have one- and two-letter aliases for all my common working directories, git commands, server startups, etc.
If you want to relentlessly shortcut, you need a shortcut for creating shortcuts:
alias brc='vi ~/.bashrc;. ~/.bashrc'
All this does is load up
.bashrc, and re-source it when I exit out of vi. This one command has turned my .bashrc into an organic, evolving toolbox, making whatever I’m working on easier, faster, and more fun.
- a central place for your ad-hoc scripts
- Usable system-wide
- Write your own or install from remote repository
- Low barrier to rolling your own.
- Simple options parsing.
Previously in Developer Happiness
This is Part 3 in our Developer Happiness series. See previous articles: