Created
April 14, 2013 19:59
-
-
Save phette23/5383978 to your computer and use it in GitHub Desktop.
Results of my "top 10 BASH commands used"
This file contains hidden or 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
# Top 10 BASH commands used | |
# from stackoverflow.com/questions/68372/what-is-your-single-most-favorite-command-line-trick-using-bash#answer-68390 | |
function top10() { | |
history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort -nr | head | |
} | |
1393 gs - alias for git status | |
1272 g - alias for git | |
1121 l - alias for ls -l | |
1003 - can't explain this...why would an empty space show up as a command? Bug in the top10 function maybe | |
755 cd | |
478 s - alias for sublime text | |
372 brew - homebrew, mxcl.github.io/homebrew/ | |
332 git | |
277 .. - alias for cd .. | |
270 z - directory-jumper utility, github.com/rupa/z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment