DEV Community

Cover image for Learn bash aliases like a boss
Shirobachi
Shirobachi

Posted on

Learn bash aliases like a boss

Sup, fellow command-line wizards!

You know what's wild? I installed some Git aliases in my zsh, and I'm like, "How the heck am I going to remember all these shortcuts?!"

But then, boom! I got my thinker thinking, and I whipped up this rad little script. It runs before every command you enter, checking for matching aliases and giving you a heads up if any are available to make your life easier and cooler.

Here's what it looks like:

The screenshot what show that someone wrote  raw `git log` endraw  command and before command was executed console printed big attention text with several available aliases matches to your command :)

Pretty groovy, right? I guarantee it's a total game-changer, and it's only going to get better as I tinker around with it.

Wanna give this baby a spin? Seriously, you won't regret it. Just toss this script into your .zshrc file (or .bashrc, if that's your jam), and let the magic unfold.

Any issues are welcome in gist comment :)

Stay funky, shell aficionados!

Top comments (0)