Skip to content

Instantly share code, notes, and snippets.

@auxiliumknowledge
Last active March 20, 2024 07:03
Show Gist options
  • Save auxiliumknowledge/3cd2f2f3eb114b512eb8f4532b70a0eb to your computer and use it in GitHub Desktop.
Save auxiliumknowledge/3cd2f2f3eb114b512eb8f4532b70a0eb to your computer and use it in GitHub Desktop.
List all aliases with just one character

The idea

Using an alias is something very common for everyone that works with the terminal. Most people decide to create their alias names on the fly from intuition. This creates aliases like gc which is mapped to git commit. My brain does not work like this. Now i have infinite possibilities to create aliases and no measure if there are useful. This is why i created the rule, that useful shortcuts have only one letter. Then you have a personalized map of 24 aliases for your absolut essentials. My rule created a new problem. What letters are actually taken and how are they mapped? The snippet above solves that.

Why are you sharing this alias?

Because the idea is simple and you just need this alias to make it work. You don't have to be extrem to get value here. Even i do still alias stuff like sl to ls. This is an simple idea with an simple solution.

Maybe you find it useful.

alias aliabc="alias | grep '^.='"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment