4

I am trying to set my default terminal for my WSL prompt in windows terminal to start at a specific folder under the C drive.

i am able to set the default to /mnt but it wont let me go /mnt/c/<myfolder> whenever i do this is sets it back to /mnt/c/Users/<myuser>

4

1 回答 1

7

如果settings.json您正在使用该commandline属性,请将该行替换为:

"source": "Windows.Terminal.Wsl"

然后使用驱动器号和路径中的正斜杠将您的startingDirectory的值设置为C驱动器中您喜欢的任何位置,所以它看起来像这样:

"startingDirectory" : "C:/Windows/Fonts",

于 2020-07-01T18:38:58.410 回答