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
Top comments (0)