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 forgit
l
: my alias forls -al
t
: my alias fortodo.sh
todo
: my alias fort due 7
cd
is (mostly) redundant as Oh My Zsh doesn’t require itgit
is also redundant as I should be usingg
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:
fff
is my Fighting Fantasy Fighter node app which has been getting more usage again recently-
is Oh My Zsh shorthand forcd -
whichcd
s to the previous directory
Update 27/01/22
1 2630 26.112% g
2 736 7.30739% l
3 488 4.84512% git
4 413 4.10048% vi
5 354 3.51469% npm
6 324 3.21684% cat
7 286 2.83956% cd
8 277 2.7502% sudo
9 234 2.32327% which
10 212 2.10485% rm
11 204 2.02542% t
12 166 1.64813% grep
13 159 1.57863% mv
14 152 1.50913% man
15 113 1.12192% node
16 109 1.08221% vagrant
17 90 0.893566% ln
18 89 0.883638% cp
19 81 0.80421% echo
20 78 0.774424% spd-say
Notes
- I’m still accidentally using
cd
but less often - New entry
spd-sav
is a handy one for quick text-to-speech