DEV Community

loading...

Discussion on: How to customize the new Windows Terminal with Visual Studio Code

Collapse
thatkazuki profile image
Desmond Edem

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.

Collapse
eliandroribeiro profile image
Eliandro

I would suggest you to define the HOME environment variable. This worked for me with Git Bash.

stackoverflow.com/questions/322329...

Collapse
rennex profile image
Renne Nissinen

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

Collapse
dougbm profile image
Douglas Marquardt

Thanks! It works.