博学之,审问之,慎思之,明辨之,笃行之!

导航

wsl 如何去掉 windows 的环境变量

1、在 wsl 下新建 /etc/wsl.conf 配置文件,并编辑如下内容:

[interop]
appendWindowsPath = false

2、在 powershell 执行以下命令,重启 wsl 即可:

wsl --terminate <distro>

3、参考文献

posted on 2020-12-21 13:25  PP杰  阅读(3126)  评论(0编辑  收藏  举报