When I open a folder in Cursor, it can take 4 minutes for it to find Git Source Control and to initialise Git Bash in the terminal. The terminal also seems slow and clunky. The cursor often jumps several lines.
This issue does not happen in VS Code. The source and terminal initialise immediately.
The problem can happen on small and large code bases.
Hey, thanks for the detailed report. 4 minutes to initialize is definitely not normal.
To debug this, we need to check a few things:
Bash profile, this is the most common cause, especially with Git Bash. Check how heavy your .bashrc or .bash_profile is. Tools like nvm, conda, pyenv can add tens of seconds to startup. Try temporarily renaming those files and restarting Cursor. If the problem goes away, it’s the profile.
Try a different shell. Switch the default terminal profile to PowerShell or CMD via Terminal dropdown > Select Default Profile. If those initialize instantly, it confirms the delay is from loading the bash profile.
Extensions. Launch Cursor from the command line with cursor --disable-extensions and see if the delay is gone.
Workspace state reset. Fully close Cursor, delete or rename this file: C:\Users\<username>\AppData\Roaming\Cursor\User\globalStorage\state.vscdb
then start Cursor again.
One more thing, can you share your list of installed extensions? Use Ctrl+Shift+P then run Extensions: Show Installed Extensions.
Let me know what helped or didn’t help, and we’ll dig deeper.
I dont have .bashrc or .bash_profile. I switched to CMD and that worked perfectly. I ran cursor --disable-extensions had the same issue with Bash. I also deleted state.vscdb but again had problems. I have now decided to change terminal to Powershell 7 posh-git. This is so far proving much better, so I will have to go with this solution for now.
Since CMD works fine and neither disable-extensions nor resetting state.vscdb helped, that confirms the issue is specifically with how Cursor initializes Git Bash. Cursor adds shell integration hooks when the terminal starts, and those can conflict with Git Bash on Windows.
PowerShell 7 with posh-git is a solid choice, glad that worked.
Let me know if you start seeing issues on PowerShell 7 too.