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

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

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

相关文章:

linux - Windows 10 上的 Bash linux (WSL) - 当我在其中移动某些内容时,终端/控制台不刷新文件夹/文件

java - 如何在 Linux 上用 Java 获取当前工作目录

bash - 在 shell 脚本中获取 2 个数组中的公共(public)值

ubuntu - 如何以编程方式从 MP3 中删除静音?

ubuntu - 清除后如何安装npm

vue.js - 在新应用程序中删除 HelloWorld.vue 组件时,找不到 Vue WSL Ubuntu -"HelloWorld.vue"依赖项”

linux - 2 个字符串的所有排列和组合的列表

python - 如何通过使用 bash 脚本传递参数来运行 python 文件?

c - "/dev/ttyUSB0"在 Windows 中等效

ruby-on-rails - 我可以生成一个新的 config/master.key 文件吗?