opencode
opencode copied to clipboard
[FEATURE]:Run pwsh.exe (my $env:shell) with -NoProfile argument
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.