$ history | awk '{print $2}' | sort | uniq -c | sort -rn | head -n 15
95 cd
64 vim
55 ls
26 ssh
26 open
19 ifconfig
15 sudo
11 xelatex
11 less
10 pandoc
10 irb
9 man
9 echo
9 cp
9 convert
(via)