So, not too long ago, I was asked by multiple people how I code on Windows, and I tried searching online for workflows that makes sense to someone coming from Linux, and found nothing, so here I am writing it myself.
I write my code in Windowsland, and I use the binaries in Bash/Ubuntu land to run/compile the code I write. This way, I can continue using familiar editors like Visual Studio Code, while still keeping to the Bash shell to do most of the work.
~/.bash_aliases.sh file, I have a line that resembles this.
alias code="cd /mnt/c/Users/username/Documents/code"
The Bash/Ubuntu land
/mnt/c/Users/username/Documents/code path maps to my user’s Windowsland
C:\Users\username\Documents\code, which for all intents and purposes is the code folder in Documents.
Whenever I start coding, I start by typing
code into the Bash shell, which brings me to where all my code is. I then
git clone my code into that directory on Bash/Ubuntu land, and modify the same code in Windows using my preferred editor, and I test/push the code back in the Bash shell again.
Hope this helps whoever is coming from Linux/Apple to Windows.
How do you set up your dev environment on windows? Post it in the comments below!