As above, I want to by default open Ubuntu 22.04.1 (in WSL) through Microsoft Terminal in my Windows home directory C:\Users\\<name\>
.
I've tried entering the default path as C:\\Users\\\<name>
and as /mnt/C/Users/\<name>
, as well as editing the JSON file directly, but each time I get the error:
Could not access starting directory _"\<choice of directory\>"_
... on start up. How would I get WSL to open in the Windows home directory?
cd /mnt/c/Users/\<name>
to the end of.bashrc
(I'm aware that this might not be the correct file to edit, but at least.bashrc
is executed at every login, so I do end up in the correct directory)