Avoid loading Windows PATH into WSL

WSL uses an INI-like configuration file at /etc/wsl.conf. It’s a bit easier to configure than the Windows Terminal profiles.json.

We usually avoid the WSL default of putting the full Windows PATH into WSL. Particularly when using a build system like CMake, there will be Windows libraries that WSL-based CMake thinks it can use that it actually can’t. There are a lot of StackExchange questions on this topic as well.

There is a trivially-simple fix to this problem. Simple be sure that /etc/wsl.conf includes:


Don’t populate Cygwin PATH from Windows PATH.