我正在使用 Ubuntu Bash,并在 WSL、Windows 10 上安装了 ZSH。
命令(ConEmu 任务设置):
"%WINDIR%\System32\wsl.exe ~" -cur_console:p
命令(ConEmu 集成设置):
-Single -run {Bash::ubuntu} -cur_console:n
ConEmu 中集成的所有其他终端我都可以在当前项目文件夹中右键单击打开,但 Ubuntu Bash 始终在默认文件夹 (~) 中打开。
我尝试了此处描述的设置: ConEmu + WSL: Open new console in current tab directory
因此,使用命令:
set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -C~ -cur_console:pm:/mnt
它的工作原理与我的情况相同。
正确的:
set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -cur_console:pm:/mnt
终端在当前文件夹中打开并且可以工作,但在 Bash 中打开,不再有 ZSH。
非常感谢您的帮助。
最佳答案
终于可以与 ZSH 配合使用了!我的设置:
任务
Bash::ubuntu
-icon "%USERPROFILE%\ubuntu\ubuntu.ico"
"%WINDIR%\System32\wsl.exe" -cur_console:pm:/mnt
集成
Bash Here
-Single -run {Bash::ubuntu} -cur_console:n
%USERPROFILE%\ubuntu\ubuntu.ico
关于bash - ConEmu 中集成了带有 ZSH 的 WSL Bash - 在此处打开问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54973810/