Jinsight-gif/dsh-plugin-gitbash ↗★ 0
dsh-plugin-gitbash
在 Windows 主机上通过 DeepSeek Harness 运行 Git for Windows Bash 命令的插件,支持 WSL 感知与自动检测
AI 分析
核心用途是允许 Agent 在 Windows 环境下直接调用 Git Bash 执行终端命令。适合在 Windows 平台上开发、且需要 Bash 兼容环境执行脚本的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jinsight-gif/dsh-plugin-gitbash说明文档
阅读完整 README ↗Configuration
Table row config for the bundle row (or your preset row):
| Key | Type | Default | Meaning |
|---|---|---|---|
gitBashPath | string | — | Explicit path to bash.exe. Trusted as-is, no detection. |
autoDetect | boolean | true | Search well-known install locations when no explicit path is set. |
timeoutMs | number | 120000 | Default per-call timeout; a single call can override with its timeoutMs argument. |
maxOutputChars | number | 65536 | Tail-truncate captured stdout/stderr to this many characters per stream (the full capture still exists in the collector/spill). |
Resolution order: config.gitBashPath → DSH_GITBASH_PATH env var →
auto-detection (unless autoDetect: false). Self-healing: when no path
resolves at mount time, every call re-runs the resolution — installing Git
for Windows or mounting a drive takes effect without a DSH restart.
Auto-detection candidates:
- Windows host:
%ProgramFiles%\Git\bin\bash.exe,%ProgramFiles(x86)%\Git\bin\bash.exe, thenbashvia PATH. - WSL / POSIX:
/mnt//Program Files/Git/bin/bash.exeand the(x86)variant (checks every mounted drive letter).
Example — explicit path as row config:
- id: tool-gitbash
name: 'dsh-plugin-gitbash'
config:
gitBashPath: '/mnt/e/Program Files/Git/bin/bash.exe'
No time to edit config? Set the environment variable:
export DSH_GITBASH_PATH='/mnt/e/Program Files/Git/bin/bash.exe'