Created
October 25, 2013 09:06
-
-
Save benmathes/7151836 to your computer and use it in GitHub Desktop.
Speed up your time on the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first, find out which commands you use the most: | |
cut -f1 -d" " ~/.bash_history | sort | uniq -c | sort -nr | head -n 30 | |
# example output: | |
95 cd | |
63 bundle | |
40 exit | |
33 vi | |
33 ls | |
... | |
# next, in your ~/.bashrc file, alias the longer commands into one or two character commands | |
alias b='bundle' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment