Skip to content

$env:SHELL only works when Powershell is set to default #3

@thebitstick

Description

@thebitstick

/usr/bin/env sudo $env:SHELL -nologo -Command "& $args"

Using $env:SHELL only works on systems that have their shell set as Powershell.
How about first checking if the current is pwsh, if not, then check if pwsh-preview exists, if not, then default to pwsh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions