windows-subsystem-for-linux - Setting default windows terminal starting directory to folder within c drive WSL
问题描述
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>
解决方案
如果settings.json
您正在使用该commandline
属性,请将该行替换为:
"source": "Windows.Terminal.Wsl"
然后使用驱动器号和路径中的正斜杠将您的startingDirectory的值设置为C驱动器中您喜欢的任何位置,所以它看起来像这样:
"startingDirectory" : "C:/Windows/Fonts",
推荐阅读
- functional-programming - 在 Scheme 的这种应用减少中,“let”来自哪里?
- shell - 从 shell 脚本在 docker 中启动 selenium 集线器时遇到问题
- c++ - LLVM 无法将数组类型转换为 ConstantArray
- api - 如何通过 youtube api 查询 youtube 视频的版权声明
- python - 如何随机化列表以满足条件
- grails - 使用 grails 实现社交媒体登录
- python-3.x - 如何生成标签并使用它对python中的数据框列进行分类?
- c++ - 通过 Eclipse 在 linux 上调试 C/C++ 应用程序
- tomcat - IIS 反向代理:传递访问的域/主机
- reactjs - useEffect 仅更新特定密钥更新