Jinsight-gif/dsh-plugin-gitbash ↗★ 0
dsh-plugin-gitbash
Run commands on the Windows host's Git for Windows Bash from DeepSeek Harness. WSL-aware, auto-detects the git-bash install path, zero runtime dependencies.
安装
$
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'