[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

  1. Install Claude Code in your home under ~/claude/
  2. In ~/.bashrc add alias claude=/home/<user>/claude/node_modules/.bin/claude
  3. Logout / login to reload the bashrc
  4. Run claude
  5. 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.

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗