Skip to content

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

Closed as not planned

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.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 2, 2026
  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 2, 2026
  3. github-actions commented on Jan 2, 2026

    @github-actions
    Contributor

    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:

    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.

  4. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  5. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions