xswt442-cmd/dsh-unsandboxed-winbash ↗★ 0
dsh-unsandboxed-winbash
在Windows上免沙箱启动Git Bash工具。 适合Windows用户,解决Git Bash在沙箱环境下无法启动的问题。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xswt442-cmd/dsh-unsandboxed-winbash说明文档
阅读完整 README ↗配置
- insert:
- id: tool-winbash
name: dsh-unsandboxed-winbash/tool
config:
bashPath: '' # 显式指定 Git Bash 路径(默认自动发现)
gitPathPrefix: true # 把 Git 的 usr\bin / mingw64\bin / cmd 前置到 PATH
extraPath: '' # 额外 PATH 前缀,';' 分隔(排在最前)
drainMs: 250 # 子进程退出后等待输出排空的上限
timeoutMs: 120000 # 命令默认超时
maxTimeoutMs: 600000
maxOutputBytes: 64000
maxSpillBytes: 67108864
enableRunInBackground: true
Git Bash 自动发现顺序:%ProgramFiles%\Git\usr\bin\bash.exe → %ProgramFiles%\Git\bin\bash.exe → %LOCALAPPDATA%\Programs\Git\usr\bin\bash.exe → %ProgramFiles(x86)%\Git\...。找不到且未配置 bashPath 时,只在调用 winbash 时报错,挂载本身不失败。