Skip to content

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

@SaliSal998

Description

@SaliSal998

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.

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions