win10升级后cmder突然不能用了

Note:并没有升级wsl->wsl2。(因为似乎升级到wsl2后,就不能直接使用win的文件夹了。所以不想升级wsl)

最近升级了win10,导致cmder不能用了。解决方案如下:

GitHub user posted this workaround which worked for me:

I've fixed the issue by doing this:

  1. Download latest cygwin1-20200531.dll.xz from https://cygwin.com/snapshots/ and unpack the file as cygwin1.dll into ConEmu\wsl\ (replacing the original file there)
  2. Download @Biswa96's wslbridge2 from https://github.com/Biswa96/wslbridge2/releases and unpack to the same directory
  3. Replacing {WSL::bash} task's Command with:
set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe %ConEmuBaseDirShort%\wsl\wslbridge2.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%\wsl\wslbridge2.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.

 

Noteme: 

ConEmu\wsl\ 目录是:cmder_mini\vendor\conemu-maximus5\ConEmu\wsl

 

posted @ 2020-09-14 10:35  小鼬就是我  阅读(334)  评论(0编辑  收藏  举报