[question] how to set the default path on startup? #2972

Closed
opened 2026-01-30 23:10:01 +00:00 by claunia · 4 comments
Owner

Originally created by @tuananh on GitHub (Jul 28, 2019).

right now, it's default to mnt/c/WINDOWS/system32. can i change it to sth else, say $HOME?

Originally created by @tuananh on GitHub (Jul 28, 2019). right now, it's default to mnt/c/WINDOWS/system32. can i change it to sth else, say $HOME?
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-30 23:10:01 +00:00
Author
Owner

@catthehacker commented on GitHub (Jul 28, 2019):

You can change it by setting the startingDirectory property in profiles.json.
For example ~ results in CWD to be set to user profile path on Windows partition.
image
image

@catthehacker commented on GitHub (Jul 28, 2019): You can change it by setting the `startingDirectory` property in `profiles.json`. For example `~` results in CWD to be set to user profile path on Windows partition. ![image](https://user-images.githubusercontent.com/31106839/62002333-7fd84e80-b0f1-11e9-8580-9446e6488558.png) ![image](https://user-images.githubusercontent.com/31106839/62002338-9bdbf000-b0f1-11e9-90ac-a0b5948e98c4.png)
Author
Owner

@tuananh commented on GitHub (Jul 28, 2019):

when i use ~, it's not wsl home so i ended up doing this instead `

"commandline" : "wsl.exe ~ -d Ubuntu",

@tuananh commented on GitHub (Jul 28, 2019): when i use ~, it's not wsl home so i ended up doing this instead ` `"commandline" : "wsl.exe ~ -d Ubuntu",`
Author
Owner

@ckhordiasma commented on GitHub (Aug 11, 2019):

how do I set the starting directory to the WSL version of "~", so for me, /home/ckhordiasma ?

I tried /home/ckhordiasma and it didn't work.

@ckhordiasma commented on GitHub (Aug 11, 2019): how do I set the starting directory to the WSL version of "~", so for me, /home/ckhordiasma ? I tried /home/ckhordiasma and it didn't work.
Author
Owner

@bestony commented on GitHub (Aug 30, 2019):

yes, i try ~ and /home/bestony, but didn't work

@bestony commented on GitHub (Aug 30, 2019): yes, i try `~` and `/home/bestony`, but didn't work
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2972