Categories
Blog

`zsh_stats`

I’ve been using Zsh + Oh My Zsh for all my command line needs for some time, so I was delighted to discover Oh My Zsh’s zsh_stats command.

It gives a nice summary of the top 20 most frequently used shell commands. Here’s my top 20:

 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

Notes:

  • g : my alias for git
  • l : my alias for ls -al
  • t : my alias for todo.sh
  • todo : my alias for t due 7
  • cd is (mostly) redundant as Oh My Zsh doesn’t require it
  • git is also redundant as I should be using g

What are your top 20 zsh commands? Or perhaps you have already stopped reading?!

Update 03/07/21

     1	3093  26.884%    g
     2	1119  9.72621%   l
     3	648   5.63233%   npm
     4	342   2.97262%   cd
     5	312   2.71186%   git
     6	308   2.6771%    cat
     7	302   2.62495%   vi
     8	243   2.11213%   fff
     9	240   2.08605%   sudo
    10	233   2.02521%   which
    11	226   1.96436%   t
    12	206   1.79053%   rm
    13	155   1.34724%   node
    14	147   1.27771%   mv
    15	126   1.09518%   man
    16	112   0.97349%   grep
    17	109   0.947414%  vagrant
    18	102   0.886571%  docker
    19	92    0.799652%  cp
    20	80    0.69535%   -

Notes: