Skip to main content

How to use dsh-bash-win

Provides Git Bash and WSL 2 bash tools on Windows, with sandboxing and background task support.

This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.

This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.

Quick start

Provides Git Bash and WSL 2 bash tools on Windows, with sandboxing and background task support.

— source: plugins.ai_summary

Install & verify

dsh plugin --profile web add @zimzaza4/dsh-bash-win

Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.

— source: plugins.install

Key points

  • DSH 在 Windows 上禁用了官方 bash 工具(只有 pwsh)
  • 操作路径本身不触发审批——沙箱对越界的处理是"拒绝"(报错,不弹窗);
  • 审批只出现在两处:显式批准模式(require_approval)和越界后的升权请求;
  • 升权阶梯:workspace-write(bwrap 受限)→ danger-full-access(去掉 bwrap),
  • 前台执行:timeoutMs 超时终止整个进程树、调用取消

— source: plugin_wiki.readme_en (fallback readme_raw)

Pitfalls

Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.

— source: general rule