histat - a simple history stats

Open link in next tab

bits/histat at master · serpent7776/bits

https://github.com/serpent7776/bits/tree/master/histat

bits and pieces. Contribute to serpent7776/bits development by creating an account on GitHub.

bits/histat at master · serpent7776/bits

I created a very simple script that shows the history usage of your shell. Should work with bash and fish shells.

This basically goes through the history and counts the command names. So all of git push, git pull, etc will count as just git.

Example output:

    847 pacman
    296 cd
    206 git
    203 time
    180 vim
    172 awk
    166 aur
    142 strace
    141 cat
    125 ls
Total commands:  7008
Unique commands: 753