DEV Community

Cover image for Alias Alchemy - Instant Bash Setup!
Parth Agarwal
Parth Agarwal

Posted on • Originally published at blog.ra101.dev

Alias Alchemy - Instant Bash Setup!

Alias Alchemy is a Deno-powered server that fetches aliases from a GitHub repository based on your query. Think of it as your instant alias spellbook, perfect for setting up new environments in seconds.

⚡ Usage:

$ alias-alchemy.ra101.dev/?q=py,shell,k8s > .aliases.sh
$ cat .aliases.sh

# Python Aliases (py, py(uv), alembic, django, celery)
...

# Shell Aliases (debian, git)
...

# Kubernetes Aliases (kubectl, kubecolor, kustomize)
...
Enter fullscreen mode Exit fullscreen mode

🤔 Why I built it ?

  1. I constantly create new VMs at my job, and the very first command I run usually fails because it was an alias typed by pure muscle memory. Once you start using aliases, it is hard to write full commands, especially those Kubernetes aliases.

  2. Whenever I start a new language, I start building aliases. For example, while learning Java (+ Maven), I made:
    alias jexec = "mvn exec:java -Dexec.args=$@".
    Since there’s no standard alias collection for most tools, I created Alias Alchemy to be that open-source standard — a handy tool for whenever someone starts something new.

  3. I wanted to learn Deno, and this is my "hello-world" project.


📖 Help Guide:

Enough Stories ! Let’s look at the help guide !

The current version supports the following

$ curl -L alal.deno.dev/help

Alias Alchemy - The best way to download aliases for fast setup.

USAGE:
    curl -L "alias-alchemy.ra101.dev/?q=<category-1>,<category-2>,..."

AVAILABLE CATEGORIES:
    , (null)                   All aliases
    shell, sh                  Shell aliases (Debian, Git, utilities)
    python, py                 Python aliases (py, py(uv), alembic, django, celery)
    docker, dk                 Docker aliases (docker, compose, swarm)
    podman, pd                 Podman aliases (podman, compose)
    kubernetes, k              Kubernetes aliases (kubectl, kubecolor, kustomize)

SHORT DOMAIN:
    alal.deno.dev

SUPPORTED TOOLS:
    curl, wget, httpie, aria2, postman, or any tool with User-Agent: 'alal'

For more information, visit: https://alias-alchemy.ra101.dev
Enter fullscreen mode Exit fullscreen mode

Links:

Top comments (0)