DEV Community

Rafi
Rafi

Posted on

1 1

Al - Simple alias manager

I recently started using Windows sub-systems for Linux (WSL). It was awesome. I could get the best of both worlds Linux and Windows. But one thing that was really annoying me is aliases. When I was using Linux I use .bashrc to manage my aliases but with WSL I don't have a single place to manage all my aliases across different shells (cmd, bash and power shell).

I wrote a program to manage alias across different shells. The idea is really simple. Aliases are placed in a file called "al.txt" in users home. When user executes an alias it just reads "al.txt" into Golang map and finds the corresponding command it is mapped to and executes that command. This simple program has improved my dev workflow significantly when working with WSL.

The code for the repo is here

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more