From 8c6fcbf2f0aa806b5af6d5eab6ae9668f49003ea Mon Sep 17 00:00:00 2001 From: John Allen Date: Thu, 26 Mar 2026 02:47:49 -0400 Subject: [PATCH] Rename local path variable in ga() to avoid clobbering zsh PATH (#5115) Co-authored-by: John Allen --- default/bash/fns/worktrees | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/default/bash/fns/worktrees b/default/bash/fns/worktrees index 5fc1063a..a175a647 100644 --- a/default/bash/fns/worktrees +++ b/default/bash/fns/worktrees @@ -7,11 +7,11 @@ ga() { local branch="$1" local base="$(basename "$PWD")" - local path="../${base}--${branch}" + local wt_path="../${base}--${branch}" - git worktree add -b "$branch" "$path" - mise trust "$path" - cd "$path" + git worktree add -b "$branch" "$wt_path" + mise trust "$wt_path" + cd "$wt_path" } # Remove worktree and branch from within active worktree directory.