weewar.com corner

Command history meme

Posted on April 18th, 2008 by Duff OMelia

Why not? Everyone else seems to be.

history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
125 git
66 gs
64 rake
56 cd
45 cap
33 ls
18 g
16 ./script/server
9 mv
8 svn

g is an alias for git. gs is an alias for git status. I like Chu’s alias of ss for script/server. I think I’ll do that.

Leave a Comment