this post was submitted on 20 Jan 2024
1 points (100.0% liked)

commandline

1512 readers
31 users here now

founded 1 year ago
MODERATORS
 

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
no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here