Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Assistant Uses PowerShell Instead of zsh on macOS #2514

Open
dna-AI opened this issue Dec 24, 2024 · 2 comments
Open

AI Assistant Uses PowerShell Instead of zsh on macOS #2514

dna-AI opened this issue Dec 24, 2024 · 2 comments

Comments

@dna-AI
Copy link

dna-AI commented Dec 24, 2024

title: AI Assistant Uses PowerShell Instead of zsh on macOS
labels: bug, shell-configuration, macos

Environment:

  • OS: macOS (darwin 24.2.0)
  • Shell: /bin/zsh
  • Project Path: /Users/davewetherill/Documents/Projects/glitch

Description:
AI Assistant's terminal command execution defaults to PowerShell on macOS,
ignoring the configured zsh shell and causing command execution issues.

Steps to Reproduce:

  1. Open Cursor on macOS with zsh as default shell
  2. Use AI Assistant to execute any terminal command
  3. Observe PowerShell prompt and formatting in output

Expected:

  • Use system's configured shell (/bin/zsh)
  • Show zsh formatting
  • Maintain shell environment between commands

Actual:
Commands show PowerShell prompt:
PS /Users/davewetherill/Documents/Projects/glitch>

Even when explicitly using zsh:
PS > /bin/zsh -c 'command'

Impact:

  • PowerShell syntax conflicts with Unix commands
  • Directory operations may fail
  • Environment variables handled incorrectly
  • Breaks macOS development workflow

System Info:
PSReadLine: 2.3.5
PowerShell: 7.4.6
OS: Darwin 24.2.0

@brooksc
Copy link

brooksc commented Dec 27, 2024

Any update or workarounds on this? I'm hitting this too on mac.

@kareemalkoul
Copy link

Same issue for Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants