Skip to content

re: How to customize the new Windows Terminal with Visual Studio Code VIEW POST


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.


Add this to your settings in the relevant profile: "startingDirectory": "//wsl$/Ubuntu/home/yourname" or whatever is the path that works in Explorer.

code of conduct - report abuse