Cursor Windows 11 Gitbash Terminal Errors ([200~) bash:[200~python: command not found]

For some reason on Windows 11, gitbash terminal doesn’t work well in cursor, no matter what model I’m using, it’s constantly giving errors in the terminal with escape sequence [200~ prefixing the commands, which causes it to fail regularly.

Eg. ❯ [200~python -m alembic upgrade head~
bash: [200~python: command not found

❯ [200~python -c “import alembic; print(‘Alembic available’)”~

bash: [200~python: command not found

❯ [200~alembic current~

bash: [200~alembic: command not found

It doesn’t just happen with alembic or python, it happens with all languages.

Does anyone have a fix? Or what I can tell it to do when it falls in this loop? It is really disrupting workflow. Cursor rules? Gitbash settings? Any solution?

1 Like

For anyone that is having this same problem, I ended up changing to git for windows. (powershell with git commands)

It works well with cursor, has some git commands like cd, ls, rm, mv etc

Only thing is, you’ll want to put in your cursor rules that when chaining commands, don’t use &&, use ;