TIL: Getting Your Most Commonly Used Terminal Commands

Kevin GathukuKevin Gathuku
1 min read

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 ๐Ÿคฉ

0
Subscribe to my newsletter

Read articles from Kevin Gathuku directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Kevin Gathuku
Kevin Gathuku

I'm a web-focused developer with a passion for exploring new ideas and hopefully sharing more of them through this blog ๐Ÿ˜ƒ