TIL: Getting Your Most Commonly Used Terminal Commands

I'm a web-focused developer with a passion for exploring new ideas and hopefully sharing more of them through this blog 😃
Search for a command to run...

I'm a web-focused developer with a passion for exploring new ideas and hopefully sharing more of them through this blog 😃
No comments yet. Be the first to comment.
When to use for, map, doseq, and run!

Property based testing leading to unexpected URL discoveries

Some Takeaways from AI-assisted Rescript Exploration

Do you believe your job can be done by AI? Up until very recently I believed this was all hype. No way this could happen. There have always been proclamations of new technologies like AI taking jobs. Most of the time dismissed as fantasy, most takes ...

Return the most frequently used terminal commands

Today I learned that my favorite terminal zsh combined with oh-my-zsh includes an inbuilt command that I can use to check my most used terminal commands.
To access it you just need to run zsh_stats and it will produce a ranked list of the top 20 commands and how many times they have been run.
This is the output I get from my terminal

A lot of those are command aliases from oh-my-zsh plugins, most of them from the git plugin. The top command there is a shortcut for git commit -m which is just a lot to type out every time I need to create a commit message.
This cheatsheet contains some more convenient shortcuts and the inbuilt oh-my-zsh plugins contain even more awesomeness! I always discover something new there.
Just thought this is a really cool feature. oh-my-zsh is pretty amazing 🤩