Skip to content

fix: rename local path to wt_path — zsh PATH collision#7

Merged
kuderr merged 1 commit into
mainfrom
wt/aliases
Feb 25, 2026
Merged

fix: rename local path to wt_path — zsh PATH collision#7
kuderr merged 1 commit into
mainfrom
wt/aliases

Conversation

@kuderr
Copy link
Copy Markdown
Owner

@kuderr kuderr commented Feb 25, 2026

Summary

  • In zsh, path is a special variable (lowercase mirror of PATH)
  • local path inside a function empties PATH, causing command not found: git
  • Renamed to wt_path in all three functions: wtcd, wto, wtn

Root cause

f() { local path; git --version; }  # fails: PATH is empty
f() { local wt_path; git --version; }  # works

Test plan

  • Verified wtn, wtcd, wto work in zsh -l -i
  • Verified wtn with auto-name and explicit name
  • User confirms in Terminal.app after curl | bash

🤖 Generated with Claude Code

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

In zsh, `path` is a special variable tied to `PATH`. Declaring
`local path` inside a function empties PATH, breaking all commands.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kuderr kuderr merged commit e7e2496 into main Feb 25, 2026
2 checks passed
@kuderr kuderr deleted the wt/aliases branch February 25, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant