Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor fails to execute any git command in any valid git repo.
Steps to Reproduce
- Install oh-my-zsh and add
plugins=(git)in .zshrc. - Install Cursor IDE
- Open a git repo folder, and ask in Cursor Ask mode to check whether
git statuscan be accessed and stop at any issue. - Observe that it fails.
Expected Behavior
Out of the box, Cursor should be able to use git command in a valid git repo.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.2.44 (Universal)
VSCode Version: 1.105.1
Commit: 20adc1003928b0f1b99305dbaf845656ff81f5d0
Date: 2025-12-24T21:41:47.598Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0
Additional Information
Very similar to this topic:
Cursor cannot run git commands on my macbook. Enabling Legacy Terminal Tool fixed the issue. The root cause seems to be oh-my-zsh’s git plugin, since I was also able to resolve this issue with the following snippet in my .zshrc:
if [[ -n "$CURSOR_AGENT" ]]; then
plugins=()
else
plugins=(git)
fi
Reference:
https://cursor.com/en-US/docs/agent/terminal#disable-heavy-prompts-for-agent-sessions
Does this stop you from using Cursor
No - Cursor works, but with this issue