Documentation Issue #2983

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

Originally created by @bgilbank on GitHub (Jul 29, 2019).

NEW documentation needed.

For WSL2, how can I set a starting directory in profiles.json? For PowerShell and CMD it's simply "startingDirectory" : "%USERPROFILE%".

What would it be for WSL using Ubuntu 18:04? Right now I land in name@sysstem32$, can't I just start at name@$.

This works correctly in the vscode terminal.

Thank you,
Brian

Originally created by @bgilbank on GitHub (Jul 29, 2019). <!-- Briefly describe which document needs to be corrected and why. --> NEW documentation needed. For WSL2, how can I set a starting directory in profiles.json? For PowerShell and CMD it's simply "startingDirectory" : "%USERPROFILE%". What would it be for WSL using Ubuntu 18:04? Right now I land in name@sysstem32$, can't I just start at name@$. This works correctly in the vscode terminal. Thank you, Brian
claunia added the Needs-TriageNeeds-Tag-FixIssue-Docs labels 2026-01-30 23:10:12 +00:00
Author
Owner

@Jarvis73 commented on GitHub (Jul 29, 2019):

Just use "startingDirectory" : "//wsl$/Ubuntu/home/<user name>"

@Jarvis73 commented on GitHub (Jul 29, 2019): Just use `"startingDirectory" : "//wsl$/Ubuntu/home/<user name>"`
Author
Owner

@bgilbank commented on GitHub (Jul 29, 2019):

Ah, thank you @Jarvis73. I had to specify the version too.

//wsl$/Ubuntu-18.04/home/<username>

@bgilbank commented on GitHub (Jul 29, 2019): Ah, thank you @Jarvis73. I had to specify the version too. `//wsl$/Ubuntu-18.04/home/<username>`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2983