When I am pasting a Windows path into a WSL console window, it gets translated automatically to a WSL path, e.g. C:\Windows
is pasted as /mnt/c/Windows
.
However, this does not reflect root
setting in /etc/wsl.conf
For example, I edit /etc/wsl.conf
and replace line root = /mnt/
with root = /
and then run Restart-Service -Name "LxssManager"
in Powershell and restart WSL.
Now Windows drives are mounted into root directly as /c/
, /d/
etc, but pasting C:\Windows
still results in /mnt/c/Windows
.
How can I change this so that it pastes /c/Windows
?
As far as I understand the utility that actually handles the translation is wslpath
but I can't find how to configure it.