1. 程式人生 > 實用技巧 >win10升級後cmder突然不能用了

win10升級後cmder突然不能用了

Note:並沒有升級wsl->wsl2。(因為似乎升級到wsl2後,就不能直接使用win的檔案夾了。所以不想升級wsl)

最近升級了win10,導致cmder不能用了。解決方案如下:

AGitHub user posted this workaroundwhich worked for me:

I've fixed the issue by doing this:

  1. Download latestcygwin1-20200531.dll.xzfromhttps://cygwin.com/snapshots/and unpack the file ascygwin1.dllintoConEmu\wsl\(replacing the original file there)
  2. Download @Biswa96'swslbridge2fromhttps://github.com/Biswa96/wslbridge2/releasesand 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 replaceconemu-cyg-64.exe --wslwithconemu-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.