Categories
Blog

`zsh_stats`

Having used Zsh with Oh My Zsh for all my command line needs for some time I was delighted to discover Oh My Zsh’s zsh_stats command which gives a nice summary of the top 20 most frequently used shell commands.

Here’s my top 20 – what’s yours? Or perhaps you have already stopped reading?

 1    2235  20.3998%   g
 2    1388  12.6689%   l
 3    787   7.18328%   npm
 4    747   6.81818%   cd
 5    391   3.56882%   vi
 6    305   2.78386%   t
 7    294   2.68346%   cat
 8    257   2.34575%   sudo
 9    247   2.25447%   which
10    214   1.95327%   git
11    152   1.38737%   ssh
12    143   1.30522%   vagrant
13    137   1.25046%   rm
14    127   1.15918%   man
15    121   1.10442%   node
16    104   0.949252%  todo
17    102   0.930997%  mv
18    93    0.84885%   grep
19    93    0.84885%   docker
20    92    0.839723%  pwd

(g is an alias for git, l is an alias for ls -al and t is an alias for todo.sh)

Silly that cd is number 4 when Oh My Zsh doesn’t even require it…

[UPDATE] cat has recently overtaken t. Stay tuned command stat fans!