Is there a way to create aliases for WSL Bash on Windows 10?
With Git Bash, it's easy: edit the file .bashrc
: alias alias-name="command"
I've done my research, including these posts 1, 2 but couldn't find the answer.
If that's not possible. Is it possible to set Git Bash as an integrated terminal in Visual Studio Code?
I got tripped up on this because I edited the wrong .bashrc file. There is one in the linux file system (home/robin/.bashrc) and there's another one in the windows file system (c:/users/robin/.bashrc). I had to edit the one in the linux file system. Now when I launch Windows Terminal I can use my aliases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With