@local/dsh-win-mingw
Runs the Windows DSH shell tool in Git Bash (the MinGW64 shell bundled with Git for Windows) instead of PowerShell. 适合Windows上习惯使用MinGW64环境而非PowerShell的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Scorpiour/dsh-mingw配置
执行器行在 cordis.patch.yml 的 mingw-shell 下,可用字段:
| 字段 | 默认 | 含义 |
|---|---|---|
bashPath | 自动探测 | 显式指定 bash.exe,也可以指定包含 bash.exe 的目录 |
verifyBash | true | 是否运行 uname 验证选中的 shell 是 MinGW/MSYS |
pathPrepend | [] | 追加到子进程 PATH 的 Windows 目录(位于 bash 目录之后) |
优先级:bashPath > MINGW_BASH 环境变量 > 常见 Git/MSYS2 安装位置 >
git --exec-path 反推的 Git 根目录 > PATH。
显式值不可用时会直接报错,不会悄悄换用别的 bash。
MINGW_BASH 对每个命令生效,改环境变量不需要重装 bundle。例如 Git 装在非标准位置:
$env:MINGW_BASH = 'D:\PortableGit\bin\bash.exe'
如果 Git/MSYS 装在非标准位置,或用的是 scoop / 便携版,优先设置 MINGW_BASH。