Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Each time I start Cursor, 16 new lines are being added to my ~/.bashrc file:
$ tail -5 ~/.bashrc
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
Steps to Reproduce
This does not happen (to ~/.bashrc or ~/.zshrc) if I use /usr/bin/chsh to set my $SHELL back to the default value of /bin/zsh. So the steps to reproduce (on macOS) are likely:
- Use
chshto change your shell to/bin/bash - run
touch ~/.bashrcto ensure that file exists (unsure if this step is necessary) - Start Cursor.app
- run
cat ~/.bashrcto observe the lines added to the file.
Expected Behavior
At most, one line should get added to the file instead of accumulating 16 each time it starts.
Operating System
MacOS
Version Information
Version: 2.6.11 (Universal)
VSCode Version: 1.105.1
Commit: 8c95649f251a168cc4bb34c89531fae7db4bd990
Date: 2026-03-03T18:57:48.001Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0
For AI issues: which model did you use?
Auto
Does this stop you from using Cursor
No - Cursor works, but with this issue