- can override settings by edit "/etc/wsl.conf"
- normally this file is not exists at first
$ sudo vi /etc/wsl.conf
[interop]
appendWindowsPath = false
$ exit
c:\Users\user> wsl
$ echo $PATH
[automount]
enabled = true
mountFsTab = true
root = "/mnt/"
options =
[network]
generateHosts = true
generateResolvConf = true
[interop]
enabled = true
appendWindowsPath = true
Exiting and relaunching doesn't update changes in wsl.conf. Terminating WSL from PowerShell using
wslconfig /t Ubuntu
command works. I am on WSL2 currently.