Last Updated: February 25, 2016
·
362
· rfair404

Bash Aliases for Everything

If you spend more than a few minutes per day in any sort of shell, bash etc. think of the top ten commands that you type every day. Add a bash alias for some of the ones you use every day and save yourself a few hundred (or thousand) keystrokes per day.

example:
alias pm="git pull origin master"
alias lsql="mysql -u root -p -h localhost"
alias gc="git commit -am "

Repeat this once or twice a month and after a year you will have a nice set of shortcuts that are second nature. Be sure to keep your aliases version controlled so that you can use them elsewhere such as:

https://github.com/robbyrussell/oh-my-zsh