Jinsight-gif/dsh-plugin-gitbash0

dsh-plugin-gitbash

在 Windows 主机上通过 DeepSeek Harness 运行 Git for Windows Bash 命令的插件,支持 WSL 感知与自动检测

AI 分析

核心用途是允许 Agent 在 Windows 环境下直接调用 Git Bash 执行终端命令。适合在 Windows 平台上开发、且需要 Bash 兼容环境执行脚本的用户。

套件
dsh-plugin-gitbash
版本
0.2.0
授權
MIT
最近更新
2026年8月23日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jinsight-gif/dsh-plugin-gitbash

Configuration

Table row config for the bundle row (or your preset row):

KeyTypeDefaultMeaning
gitBashPathstringExplicit path to bash.exe. Trusted as-is, no detection.
autoDetectbooleantrueSearch well-known install locations when no explicit path is set.
timeoutMsnumber120000Default per-call timeout; a single call can override with its timeoutMs argument.
maxOutputCharsnumber65536Tail-truncate captured stdout/stderr to this many characters per stream (the full capture still exists in the collector/spill).

Resolution order: config.gitBashPathDSH_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, then bash via PATH.
  • WSL / POSIX: /mnt//Program Files/Git/bin/bash.exe and 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'