ConEmu 中集成了带有 ZSH 的 WSL Bash - 在此处打开问题

Ana*_*tol 2 bash ubuntu conemu windows-subsystem-for-linux

我正在使用 Ubuntu Bash,并在 WSL、Windows 10 上安装了 ZSH。

命令(ConEmu 任务设置):

 "%WINDIR%\System32\wsl.exe ~" -cur_console:p
Run Code Online (Sandbox Code Playgroud)

命令(ConEmu 集成设置):

-Single -run {Bash::ubuntu} -cur_console:n 
Run Code Online (Sandbox Code Playgroud)

ConEmu 中集成的所有其他终端我都可以在当前项目文件夹中右键单击打开,但 Ubuntu Bash 始终在默认文件夹 (~) 中打开。

我尝试了此处描述的设置: ConEmu + WSL:在当前选项卡目录中打开新控制台

因此,使用命令:

set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -C~ -cur_console:pm:/mnt
Run Code Online (Sandbox Code Playgroud)

它的工作原理与我的情况相同。

与正确的:

 set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -cur_console:pm:/mnt
Run Code Online (Sandbox Code Playgroud)

终端在当前文件夹中打开并且可以工作,但在 Bash 中打开,不再有 ZSH。

我将不胜感激你的帮助。

Ana*_*tol 5

终于可以和 ZSH 一起使用了!我的设置:

任务

Bash::ubuntu

-icon "%USERPROFILE%\ubuntu\ubuntu.ico"

"%WINDIR%\System32\wsl.exe" -cur_console:pm:/mnt
Run Code Online (Sandbox Code Playgroud)

集成

Bash Here

-Single -run {Bash::ubuntu} -cur_console:n   

%USERPROFILE%\ubuntu\ubuntu.ico
Run Code Online (Sandbox Code Playgroud)