How to Add Terminal Aliases in Mac OS X Lion
One quick productivity hack is to add command line aliases to your Terminal in Mac OS X.
For example, I prefer typing c instead of clear to clear the terminal and I usually add all sorts of shortcuts for cd’ing into directories that I use often.
Here’s how to do it:
1) Navigate to your home directory:
cd ~
2) Open up .bash_profile using vi:
vi .bash_profile
3) Add an alias (press i):
alias c="clear"
4) Save the file (press Escape, type :wq, and hit Enter)
5) Restart Terminal
If you followed this example, you should now be able to just type c and Enter in Terminal to get the same affect as typing clear.
For more information, this post gives some additional examples of aliases you can add.









