win10升級後cmder突然不能用了
阿新 • • 發佈:2020-09-14
Note:並沒有升級wsl->wsl2。(因為似乎升級到wsl2後,就不能直接使用win的檔案夾了。所以不想升級wsl)
最近升級了win10,導致cmder不能用了。解決方案如下:
AGitHub user posted this workaroundwhich worked for me:
I've fixed the issue by doing this:
- Download latest
cygwin1-20200531.dll.xz
fromhttps://cygwin.com/snapshots/and unpack the file ascygwin1.dll
intoConEmu\wsl\
(replacing the original file there)- Download @Biswa96's
wslbridge2
fromhttps://github.com/Biswa96/wslbridge2/releasesand unpack to the same directory- 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 --wsl
withconemu-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.