You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]:Run pwsh.exe (my $env:shell) with -NoProfile argument #6703
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
I use oh-my-posh and terminal-icons modules in my pwsh console on my windows 11 machine.
The issue is that when opencode runs anything in shell ($env:shell = "pwsh"), it also loads these modules which breaks the opencodes TUI.
I tried changing the env variable to $env:shell = "pwsh.exe -NoProfile", but it failed with error "ENOENT: no such file or directory, uv_spawn 'pwsh.exe -NoProfile'"
Please add the ability add arguments when launching pwsh shell, or atleast the ability run it without pwsh profile.
Feel free to ignore if your specific use case differs from these requests, particularly if you need profile-argument support rather than shell selection configuration.
Activity
github-actions commentedon Jan 2, 2026
This issue might be a duplicate of or related to existing feature requests and discussions about shell configuration:
Additionally, there are related Windows shell issues that may provide context:
!commandsdon't respect $SHELL variable (and don't work at all anyway) #5456: [Windows]!commandsdon't respect $SHELL variable (and don't work at all anyway)!) is broken on Windows Powershell #4671: shell mode (!) is broken on Windows PowershellFeel free to ignore if your specific use case differs from these requests, particularly if you need profile-argument support rather than shell selection configuration.
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.