This tutorial walks you through changing the default terminal shell in Cursor AI, a VS Code fork. Adjusting the integrated terminal profile ensures your preferred shell—PowerShell, Bash, Zsh, or Command Prompt—is used for scripts and AI commands.
Step 1: Open Settings
- Click the gear icon in the lower-left corner and select Settings, or press
Ctrl+,(Windows/Linux) /Cmd+,(Mac).
Step 2: Navigate to Terminal Settings
- In the search bar, type
terminal.integrated.profiles.windows(Windows) orterminal.integrated.profiles.osx(Mac). - Click Edit in settings.json to open the configuration file.
Step 3: Modify the Default Profile
- Locate the
terminal.integrated.defaultProfile.windowsorterminal.integrated.defaultProfile.osxsetting. - Change its value to your desired shell name (e.g.,
"Git Bash","PowerShell","zsh").
Step 4: Save and Test
- Save the file (
Ctrl+S/Cmd+S). - Open a new terminal via
Ctrl+to confirm the switch.
Troubleshooting Tips
- Ensure the shell path is correct in the profiles object.
- Restart Cursor if changes don't take effect.
This simple configuration aligns your terminal with your project needs and prevents syntax conflicts in automated workflows.