Windows subsystem for linux 将默认windows终端启动目录设置为c驱动器WSL中的文件夹

Windows subsystem for linux 将默认windows终端启动目录设置为c驱动器WSL中的文件夹,windows-subsystem-for-linux,windows-terminal,Windows Subsystem For Linux,Windows Terminal,我正在尝试将windows终端中WSL提示符的默认终端设置为从C驱动器下的特定文件夹开始 我可以将默认值设置为/mnt,但它不会让我去/mnt/c/,只要我这样做,就会在设置中将其设置回/mnt/c/Users/。json如果您使用命令行属性,则将该行替换为: “源”:“Windows.Terminal.Wsl” 然后使用驱动器号和路径中的正斜杠,将startingDirectory的值设置为您喜欢的C驱动器中的任何位置,因此它看起来如下所示: “startingDirectory”:“C:/W

我正在尝试将windows终端中WSL提示符的默认终端设置为从C驱动器下的特定文件夹开始


我可以将默认值设置为
/mnt
,但它不会让我去
/mnt/c/
,只要我这样做,就会在
设置中将其设置回
/mnt/c/Users/
。json
如果您使用
命令行
属性,则将该行替换为:

“源”:“Windows.Terminal.Wsl”

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


“startingDirectory”:“C:/Windows/font”,

设置.json
中,该shell的配置文件是什么样子的?将
startingDirectory
设置为
C:\\