How to make Cursor stop using fish-shell to run commands from AI that are written for bash-shell?

I’m working from MacOS.

I have zsh installed as the system shell interpreter.

From time to time, I use fish in conjunction with tmux and vim.

I don’t want to remove fish from my computer.

For some reason, Cursor automatically picked the best shell to run commands from AI. All would be fine, but AI writes commands with the expectation that they will be run in a bash environment

1 Like

Cursor uses whatever integrated terminal is set to default in your settings. If you want it to always run bash you must set that as default, and if you want it to run fish but always execute fish commands, either set up mdc rules or tell it to remember that it is working in a fish shell. You should get a popup asking if you want it to remember. I think you might need to create a new chat after that for it to have access to that memory.

I’ve never changed the default shell. For macOS it has always been set to zsh. fish is only used in tmux. tmux is also started manually.

Where can i change this behavior?