KannaKuron/dsh-gitbash-shell0

dsh-gitbash-shell

在Windows系统上将智能体的Shell命令执行器从PowerShell替换为Git Bash,并在启动时自动生成标准、极简、代码和Cordis等预设的Git Bash版本。

AI 分析

该插件适合在Windows环境下偏好使用Bash而非PowerShell的开发者。它能将命令执行切换至Git Bash,并自动生成常用预设,需确保系统已安装Git for Windows。

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

安裝

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

配置

gitbash-presets 行支持 presets 数组,只物化你常用的模式(未列出的旧物化目录、 且未被用户修改过的,会自动清理):

- id: gitbash-presets
  config:
    presets: [standard-gitbash, minimal-gitbash]   # 默认物化全部 4 个

配合 agent-presetsdefault,新会话直接落在 Git Bash 模式,免去每次在 模式选择器里翻找(原版 shipped 模式无法替换或隐藏——部署级、只读):

- id: agent-presets
  config:
    default: ptc-cordis   # 或 standard-gitbash / minimal-gitbash

配置

gitbash-executor 行支持:

config:
  bashPath: "D:/Tools/Git/bin/bash.exe"   # 默认 C:/Program Files/Git/bin/bash.exe
  timeoutMs: 60000                         # 默认 60s,可继续用 shell 设置节调整