[FEATURE]:Run pwsh.exe (my $env:shell) with -NoProfile argument #4113

Open
opened 2026-02-16 17:42:39 -05:00 by yindo · 1 comment
Owner

Originally created by @SaliSal998 on GitHub (Jan 2, 2026).

Originally assigned to: @rekram1-node on GitHub.

Feature hasn't been suggested before.

  • 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.

Originally created by @SaliSal998 on GitHub (Jan 2, 2026). Originally assigned to: @rekram1-node on GitHub. ### Feature hasn't been suggested before. - [x] 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.
yindo added the windowsopentuidiscussion labels 2026-02-16 17:42:39 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 2, 2026):

This issue might be a duplicate of or related to existing feature requests and discussions about shell configuration:

  • #4702: [FEATURE]: Add config to change shell for bash tool - requests ability to configure shell via opencode.jsonc config file
  • #4683: [FEATURE]: allow multiple shell setups and allow switching them at runtime via TUI command - requests multiple shell configurations

Additionally, there are related Windows shell issues that may provide context:

  • #5456: [Windows] !commands don't respect $SHELL variable (and don't work at all anyway)
  • #4671: shell mode (!) is broken on Windows Powershell

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.

@github-actions[bot] commented on GitHub (Jan 2, 2026): This issue might be a duplicate of or related to existing feature requests and discussions about shell configuration: - #4702: [FEATURE]: Add config to change shell for bash tool - requests ability to configure shell via opencode.jsonc config file - #4683: [FEATURE]: allow multiple shell setups and allow switching them at runtime via TUI command - requests multiple shell configurations Additionally, there are related Windows shell issues that may provide context: - #5456: [Windows] `!commands` don't respect $SHELL variable (and don't work at all anyway) - #4671: shell mode (`!`) is broken on Windows Powershell 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4113