Had to adjust on my zsh shell:
cat ~/.zhistory | cut -d";" -f2 | awk '{CMD[$1]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
1 1681 15.2472% git
2 964 8.74376% yarn
3 921 8.35374% cat
4 755 6.84807% docker
5 628 5.69615% brew
6 515 4.6712% cd
7 372 3.37415% curl
8 366 3.31973% npm
9 298 2.70295% trash
10 270 2.44898% find
EDIT: trash is is like rm, but moves to system trash. From the reast you see that I mainly work in the JS ecosystem. If I add the second parameter, things get more interesting, and docker pops up:
1 645 5.84928% git checkout
2 324 2.93824% yarn add
3 221 2.00417% brew cask
4 176 1.59608%
5 161 1.46005% find .
6 157 1.42378% yarn upgrade
7 136 1.23334% docker run
8 125 1.13358% curl -s
9 124 1.12451% docker image
10 121 1.09731% yarn remove
EDIT2: The analysis may be more interesting if you check for piped commands as well, as I missed grep in the first list
$ cat ~/.zhistory | grep grep | wc -l
1098
$ cat ~/.zhistory | grep sort | wc -l
316