Saw a few people doing this at the end of 2024. I only keep a 2000 line history, so mine isn’t super exciting:
$ history | awk '{print $2}' | sort | uniq --count | sort --numeric-sort --reverse | head -10
211 git
120 cd
64 rm
47 python3
41 ll
40 cp
33 java
31 ssh
29 vim
25 touch