ZhangZhihui's Blog  

Disable Windows PATH injection completely

WSL automatically appends Windows paths unless you turn it off.

1. Edit /etc/wsl.conf

2. Add this:

[interop]
appendWindowsPath = false

3. Restart WSL

wsl --shutdown

 

posted on 2025-12-09 20:39  ZhangZhihuiAAA  阅读(2)  评论(0)    收藏  举报