【问题标题】:WSL Bash with ZSH integrated in ConEmu - Open Here Issue在 ConEmu 中集成了 ZSH 的 WSL Bash - 在此处打开问题
【发布时间】:2019-03-03 21:14:31
【问题描述】:

我正在使用在 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: 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。

感谢您的帮助。

【问题讨论】:

  • 问题是什么? Tilda 显然强制在 unix 主目录中启动。如何换壳described in docs.
  • 现在任务设置更清楚了,但是为什么它在 Bash 终端而不是 ZSH 中打开正确的路径,我有 zsh-autosuggestions、zsh-syntax-highlighting...?如何解决这个问题?

标签: bash ubuntu windows-subsystem-for-linux conemu


【解决方案1】:

终于可以和 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-10-24
    • 1970-01-01
    • 1970-01-01
    • 2019-05-04
    • 1970-01-01
    • 2017-07-19
    • 1970-01-01
    相关资源
    最近更新 更多