From b892ee6e65843f31c74c941b400d4a23b69598d9 Mon Sep 17 00:00:00 2001 From: Joywayer Date: Thu, 28 May 2026 15:31:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20rtk=20init=20=E7=94=A8=20yes=20=E7=AE=A1?= =?UTF-8?q?=E9=81=93=E8=87=AA=E5=8A=A8=E7=A1=AE=E8=AE=A4=EF=BC=8C=E6=B6=88?= =?UTF-8?q?=E9=99=A4=E6=89=8B=E5=8A=A8=E6=8C=89=20Enter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- claude-dev-stack/deploy.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/claude-dev-stack/deploy.ps1 b/claude-dev-stack/deploy.ps1 index 6ed94ac..9a3f1a6 100644 --- a/claude-dev-stack/deploy.ps1 +++ b/claude-dev-stack/deploy.ps1 @@ -674,8 +674,8 @@ CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install --git https://github.com/rtk-ai/ } } -# rtk init -g:安装 Claude Code PreToolUse hook(幂等) -Invoke-WSL ". ~/.cargo/env 2>/dev/null; rtk init -g --auto-patch 2>/dev/null || true" -IgnoreError | Out-Null +# rtk init -g:安装 Claude Code PreToolUse hook(幂等,yes 管道自动确认所有提示) +Invoke-WSL ". ~/.cargo/env 2>/dev/null; yes | rtk init -g --auto-patch 2>/dev/null || true" -IgnoreError | Out-Null Write-OK "rtk hook 已注册 (rtk init -g),重启 Claude Code 后生效" # ══════════════════════════════════════════════════════════════