bash - 在 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。
我会很感激你的帮助。
解决方案
最后它与 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
推荐阅读
- html - 多个导航元素上的渐变文本
- c# - 你能帮我 CopyFileDialog 窗体吗
- python-3.x - 如果时间是连续的,如何在时间间隔列表中合并 2 个子列表?
- c++ - 关于静态/隐式链接与动态/显式链接的误解
- vue.js - v-if 不适用于表单验证和显示错误
- war - PayaraMicro 不会在 EJB 或 ApplicationScoped 上调用 @PreDestroy
- javascript - 为什么返回原始 JSON 对象而不是我的部分视图?
- angular8 - Angular 8 routlerlink 仅在页面重新加载后才有效
- powershell - System.IO.Compression.ZipFileExtensions - CreateEntryFromFile 在 zip 上给出“因为它正被另一个进程使用”
- pointers - 如何检查嵌套指针访问/方法在运行时是否无效