[BUG]
Resolved 💬 6 comments Opened Aug 14, 2025 by biolds Closed Jan 8, 2026
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.73
- Operating System: Debian bookworm 12.11
- Terminal: Konsole
Bug Description
Claude Code deletes my alias for "claude" from ~/.bashrc .
Steps to Reproduce
- Install Claude Code in your home under ~/claude/
- In ~/.bashrc add
alias claude=/home/<user>/claude/node_modules/.bin/claude - Logout / login to reload the bashrc
- Run
claude - Check bashrc, the alias is missing
Expected Behavior
Claude should not modify my bashrc
Actual Behavior
It's silently modified
Additional Context
This is verified by running claude with strace.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗