DEV Community

Cover image for Learn bash aliases like a boss
Shirobachi
Shirobachi

Posted on

1

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!

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay