Skip to content

Instantly share code, notes, and snippets.

@benmathes
Created October 25, 2013 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benmathes/7151836 to your computer and use it in GitHub Desktop.
Save benmathes/7151836 to your computer and use it in GitHub Desktop.
Speed up your time on the command line
# 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