I am setting up my development environment, so I just installed Windows Subsystem for Linux and it always seems to open a fresh terminal in my Windows home directory - /mnt/c/Users/dl
and I'm trying to make it default to the linux home directory - /home/dl
.
I checked to see what the home directory is in the Linux subsystem in /etc/passwd
and it is correctly set:
dl:x:1000:1000:,,,:/home/dl:/bin/bash
Then I came across this solution, but it doesn't seem to have any affect:
// Set starting directory
"startingDirectory": "\\\\wsl$\\Ubuntu\\home\\dl\\"
I know I can just run cd ~
in my dot files (which is what I'm currently using), but I'm looking for a way where /home/dl
is just the default and cd ~
isn't needed. Is this possible?