首页 > 解决方案 > 在 ConEmu 中集成了 ZSH 的 WSL Bash - 在此处打开问题

问题描述

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

(ConEmu 任务设置)中的命令:

 "%WINDIR%\System32\wsl.exe ~" -cur_console:p

(ConEmu 集成设置)中的命令:

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

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

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

因此,使用命令:

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。

我会很感激你的帮助。

标签: bashubuntuwindows-subsystem-for-linuxconemu

解决方案


最后它与 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

推荐阅读