Skip to content

Instantly share code, notes, and snippets.

@zeekay
Forked from kennethreitz/history.txt
Last active September 27, 2015 05:18
Show Gist options
  • Save zeekay/1218135 to your computer and use it in GitHub Desktop.
Save zeekay/1218135 to your computer and use it in GitHub Desktop.
Most used commands, in order by usage, since last install
› history 1 | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn |head -n 20
338 vim
285 cd
104 rm
97 ack
96 git
82 brew
63 ssh
60 npm
59 v
49 mv
39 pip
35 cp
34 go
34 dig
32 ping
31 sudo
26 zerorpc
23 which
22 fab
21 requisite
% history 1 | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn |head -n 20
682 cd
547 nano
302 rm
295 hg
206 vim
177 echo
161 sudo
151 ack
147 mv
133 pip
132 git
113 cat
110 cp
105 mkdir
104 brew
78 python
78 export
76 theme
68 o
65 ssh
@zeekay
Copy link
Author

zeekay commented Sep 14, 2011

I actually aliased nano=vim recently to keep myself from using it, :P
Old habits die hard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment