From d7400a0bc0beeb10fd1b63b0b105296d8fb7389f Mon Sep 17 00:00:00 2001 From: Reinier Criel Date: Fri, 10 Apr 2026 15:20:37 -0700 Subject: [PATCH 1/3] Update packages/safe-chain/src/shell-integration/supported-shells/zsh.js Co-authored-by: aikido-pr-checks[bot] <169896070+aikido-pr-checks[bot]@users.noreply.github.com> --- .../safe-chain/src/shell-integration/supported-shells/zsh.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/safe-chain/src/shell-integration/supported-shells/zsh.js b/packages/safe-chain/src/shell-integration/supported-shells/zsh.js index b2c29e4..c9be67f 100644 --- a/packages/safe-chain/src/shell-integration/supported-shells/zsh.js +++ b/packages/safe-chain/src/shell-integration/supported-shells/zsh.js @@ -34,7 +34,7 @@ function teardown(tools) { ); } - // Removes the line that sources the safe-chain zsh initialization script (any path, requires safe-chain comment) + // Remove init script source line to uninstall shell integration; marker ensures only safe-chain-added lines are removed removeLinesMatchingPattern( startupFile, /^source\s+.*init-posix\.sh.*#\s*Safe-chain/, From 8cf41dc4a65ed0d8c0c325604b484513b08a1b8e Mon Sep 17 00:00:00 2001 From: Reinier Criel Date: Fri, 10 Apr 2026 15:20:53 -0700 Subject: [PATCH 2/3] Update packages/safe-chain/src/shell-integration/supported-shells/bash.js Co-authored-by: aikido-pr-checks[bot] <169896070+aikido-pr-checks[bot]@users.noreply.github.com> --- .../safe-chain/src/shell-integration/supported-shells/bash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/safe-chain/src/shell-integration/supported-shells/bash.js b/packages/safe-chain/src/shell-integration/supported-shells/bash.js index bcf0bc6..3491bc7 100644 --- a/packages/safe-chain/src/shell-integration/supported-shells/bash.js +++ b/packages/safe-chain/src/shell-integration/supported-shells/bash.js @@ -35,7 +35,7 @@ function teardown(tools) { ); } - // Removes the line that sources the safe-chain bash initialization script (any path, requires safe-chain comment) + // Marker comment ensures only safe-chain-added lines are removed, not user's own source statements removeLinesMatchingPattern( startupFile, /^source\s+.*init-posix\.sh.*#\s*Safe-chain/, From e5c79e5bd6e4a15f490ad802e1aa6d65e0a408d1 Mon Sep 17 00:00:00 2001 From: Reinier Criel Date: Fri, 10 Apr 2026 15:21:05 -0700 Subject: [PATCH 3/3] Update packages/safe-chain/src/shell-integration/supported-shells/windowsPowershell.js Co-authored-by: aikido-pr-checks[bot] <169896070+aikido-pr-checks[bot]@users.noreply.github.com> --- .../src/shell-integration/supported-shells/windowsPowershell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/safe-chain/src/shell-integration/supported-shells/windowsPowershell.js b/packages/safe-chain/src/shell-integration/supported-shells/windowsPowershell.js index e3ed236..041cca7 100644 --- a/packages/safe-chain/src/shell-integration/supported-shells/windowsPowershell.js +++ b/packages/safe-chain/src/shell-integration/supported-shells/windowsPowershell.js @@ -33,7 +33,7 @@ function teardown(tools) { ); } - // Remove the line that sources the safe-chain PowerShell initialization script (any path, requires safe-chain comment) + // Match any installation path but require the Safe-chain marker to avoid removing unrelated user scripts removeLinesMatchingPattern( startupFile, /^\.\s+["']?.*init-pwsh\.ps1["']?.*#\s*Safe-chain/,