Note:并没有升级wsl->wsl2。(因为似乎升级到wsl2后,就不能直接使用win的文件夹了。所以不想升级wsl)
最近升级了win10,导致cmder不能用了。解决方案如下:
A GitHub user posted this workaround which worked for me:
I've fixed the issue by doing this:
- Download latest
cygwin1-20200531.dll.xz
from https://cygwin.com/snapshots/ and unpack the file ascygwin1.dll
intoConEmuwsl
(replacing the original file there)- Download @Biswa96's
wslbridge2
from https://github.com/Biswa96/wslbridge2/releases and unpack to the same directory- Replacing
{WSL::bash}
task's Command with:set "PATH=%ConEmuBaseDirShort%wsl;%PATH%" & %ConEmuBaseDirShort%conemu-cyg-64.exe %ConEmuBaseDirShort%wslwslbridge2.exe -cur_console:pm:/mnt -eConEmuBuild -eConEmuPID -eConEmuServerPID -l
I can now access my Ubuntu under W10 just like before the W10 upgrade. Backscroll and arrows in VIM work as expected.
The key part of step 3 is to replace conemu-cyg-64.exe --wsl
with conemu-cyg-64.exe %ConEmuBaseDirShort%wslwslbridge2.exe
.
Longer term, it looks like the author of ConEmu is working on switching to the new Windows PTY API, which will eliminate the need for the wslbridge hack (and many others) entirely.