How to Fix Cursor Agent Not Using Default zsh Shell on macOS?


I ask the agent to run a simple “ls” command and pop out the terminal. This is the process and terminal information.

(text in the photo transcribed)

ls

Process ID (PID): 20547

Command line: /opt/homebrew/bin/bash '--init-file' '/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh'

Shell integration activated

The following extensions have contributed to this terminal's environment:

* Git : Enables the following features: git auth provider

* Python : Activated environment for ./.venv/bin/python

Show Environment Contributions