Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix(shell): use command rm in wrapper cleanup to bypass rm aliases (#3714)
Arale949ed5fdaa1
diff --git a/src/shell/snapshots/worktrunk__shell__tests__init_bash.snap b/src/shell/snapshots/worktrunk__shell__tests__init_bash.snapindex e42b01e5e..ae7f5b93f 100644--- a/src/shell/snapshots/worktrunk__shell__tests__init_bash.snap+++ b/src/shell/snapshots/worktrunk__shell__tests__init_bash.snap@@ -60,7 +60,7 @@ if command -v wt >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; thenfifi- rm -f "$cd_file" "$exec_file"+ command rm -f "$cd_file" "$exec_file"return "$exit_code"}diff --git a/src/shell/snapshots/worktrunk__shell__tests__init_zsh.snap b/src/shell/snapshots/worktrunk__shell__tests__init_zsh.snapindex be3f1a9b7..60b3a851f 100644--- a/src/shell/snapshots/worktrunk__shell__tests__init_zsh.snap+++ b/src/shell/snapshots/worktrunk__shell__tests__init_zsh.snap@@ -63,7 +63,7 @@ if command -v wt >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; thenfifi- rm -f "$cd_file" "$exec_file"+ command rm -f "$cd_file" "$exec_file"return "$exit_code"}diff --git a/src/shell/snapshots/worktrunk__shell__tests__shell_init_with_custom_prefix.snap b/src/shell/snapshots/worktrunk__shell__tests__shell_init_with_custom_prefix.snapindex 71ce20aff..2ba0dae08 100644--- a/src/shell/snapshots/worktrunk__shell__tests__shell_init_with_custom_prefix.snap+++ b/src/shell/snapshots/worktrunk__shell__tests__shell_init_with_custom_prefix.snap@@ -60,7 +60,7 @@ if command -v custom >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; thenfifi- rm -f "$cd_file" "$exec_file"+ command rm -f "$cd_file" "$exec_file"return "$exit_code"}diff --git a/templates/bash.sh b/templates/bash.shindex 996935c76..16ce0a40a 100644--- a/templates/bash.sh+++ b/templates/bash.sh@@ -56,7 +56,7 @@ if command -v {{ cmd }} >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; thenfifi- rm -f "$cd_file" "$exec_file"+ command rm -f "$cd_file" "$exec_file"return "$exit_code"}diff --git a/templates/zsh.zsh b/templates/zsh.zshindex 7de32d1f6..1318a1cd7 100644--- a/templates/zsh.zsh+++ b/templates/zsh.zsh@@ -59,7 +59,7 @@ if command -v {{ cmd }} >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; thenfifi- rm -f "$cd_file" "$exec_file"+ command rm -f "$cd_file" "$exec_file"return "$exit_code"}diff --git a/tests/snapshots/integration__integration_tests__init__init_bash.snap b/tests/snapshots/integration__integration_tests__init__init_bash.snapindex e230c64d3..a2587f3b4 100644--- a/tests/snapshots/integration__integration_tests__init__init_bash.snap+++ b/tests/snapshots/integration__integration_tests__init__init_bash.snap@@ -104,7 +104,7 @@ if command -v wt >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; thenfifi- rm -f "$cd_file" "$exec_file"+ command rm -f "$cd_file" "$exec_file"return "$exit_code"}diff --git a/tests/snapshots/integration__integration_tests__init__init_zsh.snap b/tests/snapshots/integration__integration_tests__init__init_zsh.snapindex 6595ad6f6..0f2f52678 100644--- a/tests/snapshots/integration__integration_tests__init__init_zsh.snap+++ b/tests/snapshots/integration__integration_tests__init__init_zsh.snap@@ -107,7 +107,7 @@ if command -v wt >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; thenfifi- rm -f "$cd_file" "$exec_file"+ command rm -f "$cd_file" "$exec_file"return "$exit_code"}