[Bug] Reinstaller fails to update shell aliases from previous installation
Bug Description
Hi folks, reporting bug:
Title: Reinstall breaks CLI - old alias in .zshrc points to removed path
Description:
After the Claude CLI auto-updated (or broke), I ran the official reinstaller:
curl -fsSL https://claude.ai/install.sh | sh
The install succeeded and reported:
Location: ~/.local/bin/claude
However, the CLI wouldn't run - zsh kept trying to execute the old path:
zsh: no such file or directory: /Users/lukeskywalker/.claude/local/claude
Root cause: The original installation added an alias to ~/.zshrc:
alias claude=~/.claude/local/claude
The reinstaller put the binary in a new location (~/.local/bin/claude) but did not update or
remove the old alias in .zshrc.
Fix required: Manually edit ~/.zshrc to update the alias path.
Expected behavior: The installer should either:
- Remove/update any existing claude aliases in shell config files
- Or install to the same location as the previous install
Environment:
- macOS (Darwin 25.2.0)
- zsh
- Claude Code 2.0.76
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 2.0.76
- Feedback ID: 40da3c35-9c71-4406-a017-1258ccc0d506
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/lukeskywalker/.local/share/claude/versions/2.0.76 (expected in multi-process scenarios)\n at XZR (/$bunfs/root/claude:2430:2165)\n at fUA (/$bunfs/root/claude:2430:1885)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-31T01:02:23.456Z"}]
Thanks,
Matt
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗