Any idea on how I can change the starting directory to my WSL home directory? Currently, I type cd ~ anytime I want to make this switch.
Thank you.
I would suggest you to define the HOME environment variable. This worked for me with Git Bash.
stackoverflow.com/questions/322329...
Add this to your settings in the relevant profile: "startingDirectory": "//wsl$/Ubuntu/home/yourname" or whatever is the path that works in Explorer.
"startingDirectory": "//wsl$/Ubuntu/home/yourname"
Thanks! It works.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Any idea on how I can change the starting directory to my WSL home directory? Currently, I type cd ~ anytime I want to make this switch.
Thank you.
I would suggest you to define the HOME environment variable. This worked for me with Git Bash.
stackoverflow.com/questions/322329...
Add this to your settings in the relevant profile:
"startingDirectory": "//wsl$/Ubuntu/home/yourname"
or whatever is the path that works in Explorer.Thanks! It works.