Set up shortcuts for the command line tasks you use over and over again. If you find yourself typing the same thing in your command line repeatedly, this will alleviate that.
- Make the command line work for you; create aliases that are easy to remember and fast to type.
- Give Github dotfiles a try to save, share and sync up your command line shortcuts.
How to set them up
The easiest way to create command-line shortcuts is to add aliases for common commands to your bashrc file. On Mac or Linux:
From the command line anywhere, type:
open -a 'Sublime Text' ~/.bashrc
Add a new alias, for example:
alias master='git checkout master'
Anytime you are in a directory with a git repo, you can run the command
masterand it will checkout the master branch for you.
Shortcuts we recommend
These are a few commands that you may find useful.
|Command & Alias|
|Open your editor||
|Launch a server||
|Go to a directory you commonly work in||
Save, share and sync your shortcuts
Store your shortcuts and dot files on Github. The major gain with this is your shortcuts can be shared across devices and they are always backed up.