dsh-git-bash
在终端中运行以下命令:
dsh plugin install VviLliAm-qwq/dsh-git-bash
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 终端中运行 dsh plugin install VviLliAm-qwq/dsh-git-bash,即可安装该插件(源码仓库:https://github.com/VviLliAm-qwq/dsh-git-bash)。
插件介绍
dsh-TUI 在 Windows 上默认挂载 pwsh 工具栈并禁用 bash 栈,根源在于执行器和沙箱层都调用裸名 bash,而 Windows 默认 PATH 中并不包含 Git for Windows 的 bash.exe。\n\n这个插件做了一件简洁的事:在 win32 平台的 apply 阶段自动探测 Git for Windows 的安装目录,将其 prepended 到宿主进程的 PATH 中,使所有解析 bash 的组件都能找到可执行文件;同时通过 bundle patch 在启动时完成 bash 栈与 pwsh 栈的切换。卸载时它会检查 PATH 是否仍为自身写入的值,是则恢复,否则留手不碰。支持 gitBinDir 配置项以指向便携安装,所有决策写入 ~/.dsh-tui/dsh-git-bash.log,找不到安装时会以 error 级别明确告知后果。\n\n适合在 Windows 上使用 dsh-TUI、希望以 bash 作为工作 shell 的开发者。前提是机器上已安装 Git for Windows——这是一次工具栈替换而非叠加,若 bash 仍不可解析而 pwsh 行已被移除,将没有回退 shell。非 Windows 平台下插件自动跳过,不做任何修改。
使用场景
- 在 Windows 上用 dsh-TUI 工作时希望以 bash 替代 pwsh 作为默认 shell
- Git for Windows 已安装但 dsh-TUI 中 bash 工具无法解析可执行文件
- 需要 agent 命令和沙箱层统一使用 POSIX 风格的 bash
适合人员
- 在 Windows 上使用 dsh-TUI 的开发者
- 偏好 bash 工作流而非 PowerShell 的 CLI 用户
- 已安装 Git for Windows 并希望 dsh 充分利用其 bash 环境的团队