Skip to content

Create pwsh as a shorter name for calling powershell.exe #4214

Description

The muscle memory from switching cmd to powershell is a pain. It is made worse by the fact that it is much longer than typing out cmd or bash. Even with Windows Search in Start, it often picks up the ISE if you have been using it awhile, so typing out the full name is often needed.

A better name would be posh.exe or other valid extension. It is as long as bash and just one character longer than cmd. Posh has been the accepted abbreviation in the community for all things PowerShell so there is some familiarity there. I don't believe there are any conflicts with other apps that this would cause, but that would need some digging.

This could be achieved in two ways.

  1. Create a an official shortcut or symbolic link named posh that would reference powershell.exe
  2. Rename powershell.exe to posh.exe.

The former maintains backwards compatibility and allows the user to choose between posh or powershell.exe. Existing scripts not impacted.

The latter could help give more freedom to issues like #4199 and other POSIX proposals to how the shell is started. However, it is a breaking change and would need to be reviewed for the impact and the branding implication.

I think making an official posh shortcut is the best option with minimal impact. New documentation could give preference to posh as the way to enter PowerShell.

Activity

  1. added
    Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassif
    on Jul 11, 2017
  2. added
    Area-SideBySiderelated to ability to run PS7 side-by-side with WinPS or different versions of PS7
    Review - CommitteeThe PR/Issue needs a review from the PowerShell Committee
    on Jul 13, 2017
  3. joeyaiello commented on Jul 19, 2017

    @joeyaiello
    Contributor

    I would like a short alias too, but this is why we didn't get go with posh when we first went out (we talked about it at length). Appears to be still an up-to-date package too.

    Open to other suggestions, but most of the obvious *sh ones have been taken. After the only wget/curl alias thing, I'd really like to avoid colliding with other packages out there, even if they're less common.

  4. rkeithhill commented on Jul 19, 2017

    @rkeithhill
    Collaborator

    I'm not too crazy about this whole idea but how about pwsh?

  5. RichardSiddaway commented on Jul 19, 2017

    @RichardSiddaway

    I've never been keen on posh as a shortening of powershell. pwsh seems better but a quick internet search raises some possible issues. if we're going to do this I'd suggest as short as possible so what about just ps?

  6. RichardSiddaway commented on Jul 19, 2017

    @RichardSiddaway

    OK - forget that - I just realised ps is an alias for get-process. that would be too confusing

  7. joeyaiello commented on Jul 19, 2017

    @joeyaiello
    Contributor

    I'm getting strong deja vu right now. 😉

  8. rkeithhill commented on Jul 19, 2017

    @rkeithhill
    Collaborator

    I appreciate PowerShell's readability (when not using aliases) so running powershell works fine for me.

  9. dragonwolf83 commented on Jul 19, 2017

    @dragonwolf83
    Author

    ps is an existing command on Linux as well.

    Some other ideas are: pscmd, psc, monad, psh, pshell

    There is definitely diminishing returns with these names though on whether they really save anything or just add unnecessary confusion if they are even available.

  10. iSazonov commented on Jul 19, 2017

    @iSazonov
    Collaborator

    CoreSh, pcs, psc

  11. SteveL-MSFT commented on Jul 20, 2017

    @SteveL-MSFT
    Member

    Too bad mosh is taken. psh is taken. [pshell] returns many hits. Interestingly, a search for msh on both Bing and Google bring up many hits for PowerShell (calling it Microsoft Shell), although there exists a msh on Unix (perhaps not used much)

  12. iSazonov commented on Jul 21, 2017

    @iSazonov
    Collaborator

    😄 S#, P#

  13. added
    Committee-ReviewedPS-Committee has reviewed this and made a decision
    and removed
    Review - CommitteeThe PR/Issue needs a review from the PowerShell Committee
    on Jul 26, 2017
  14. 125 remaining items

  15. SteveL-MSFT commented on Oct 27, 2017

    @SteveL-MSFT
    Member
  16. bergmeister commented on Oct 28, 2017

    @bergmeister
    Contributor

    Today I saw the first usage of pwsh on SO here although I doubt that the person knows about this thread...

  17. apjanke commented on Oct 3, 2019

    @apjanke

    Can we get an official ruling on the pronunciation of pwsh? The PNG spec includes a pronunciation in its Section 1. May as well provide one for PowerShell; don't want another SCSI "scuzzy"/"sexy" situation.

    Looks like "poosh" to me.

  18. SteveL-MSFT commented on Oct 3, 2019

    @SteveL-MSFT
    Member

    Andrew Janke (@apjanke) the generally accepted pronunciation of pwsh is posh

  19. apjanke commented on Oct 3, 2019

    @apjanke

    Works for me. Thanks for the official confirmation!

  20. mklement0 commented on Oct 3, 2019

    @mklement0
    Contributor

    As for alternative pronunciations:[1]

    • Pish Posh!

    • Poppyposh!

    • The Shell Formerly Known as PowerShell (TSFKAP in Georgian)

    • The Shell That Dare Not Speak Its Name (Because the Name of Its Executable is Unpronounceable) (preferred by Welsh speakers).


    [1] Parody. Not to be taken seriously.

  21. Cloudmersive commented on Jun 12, 2021

    @Cloudmersive

    Why was this never fixed? It is still "pwsh" in Mac/Linux and "powershell" in Windows - so broken

  22. saschanaz commented on Jun 12, 2021

    @saschanaz

    Why was this never fixed? It is still "pwsh" in Mac/Linux and "powershell" in Windows - so broken

    Maybe because you haven't installed PowerShell Core?

  23. rkeithhill commented on Jun 12, 2021

    @rkeithhill
    Collaborator

    Cloudmersive (@Cloudmersive) Kagami Sascha Rosylight (@saschanaz) is right. Here's why. There are two different implementations of PowerShell. The original "Windows PowerShell" that has shipped with Windows since Windows 7. This is powershell.exe and does not run on anything but Windows. It is built on the desktop version of the .NET Framework (Windows only).

    Then there is the cross-platform version of PowerShell built on .NET Core that started life as "PowerShell Core" but has recently been shortened to just "PowerShell". It does not come with Windows atm. But it runs on Linux, macOS and Windows. You have to install it separately. This is pwsh.exe. On Windows, you will have both powershell.exe and pwsh.exe (if you install it) and they do behave a bit differently due to differences between .NET Framework and .NET Core. There are folks still using powershell.exe where the move to pwsh.exe would break their scripts. So we need both names.

  24. Jaykul commented on Jun 13, 2021

    @Jaykul
    Contributor

    Can someone teach the bot to lock closed posts after a few months so we don't all get pinged when someone zombies them?

  25. doctordns commented on Jun 13, 2021

    @doctordns
    Collaborator

    Why was this never fixed? It is still "pwsh" in Mac/Linux and "powershell" in Windows - so broken

    Well - it was never broken. PWSH.EXE and POWERSHELL.EXE are two quite different products and are not totally compatible. There are things you can do on one but not the other.

    TL;DR: nothing is broken.

    And I agree with Joel Bennett (@Jaykul)!

  26. rjmholt commented on Jun 16, 2021

    @rjmholt
    Collaborator

    Can someone teach the bot to lock closed posts after a few months so we don't all get pinged when someone zombies them?

    I'll lock this issue. Locking all old issues is something that's been discussed before, but we have a few active old issues and personally it seems a bit heavy handed to me. Feel free to raise it in a separate discussion, like the community call or similar.

  27. locked and limited conversation to collaborators on Jun 16, 2021
  28. iSazonov commented on Jun 17, 2021

    @iSazonov
    Collaborator

    We have GitHub Discussions now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-SideBySiderelated to ability to run PS7 side-by-side with WinPS or different versions of PS7Committee-ReviewedPS-Committee has reviewed this and made a decisionIssue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions