Installing PowerShell Core on macOS and Linux | Microsoft Docs
Posted by jpluimers on 2018/03/26
I forgot to blog about this before, but 2 months ago PowerShell core came available: [WayBack] PowerShell Core 6.0: Generally Available (GA) and Supported! | PowerShell Team Blog.
[WayBack] Installing PowerShell Core on macOS and Linux | Microsoft Docs is easy (one way is through homebrew:
$ brew tap caskroom/cask
$ brew cask install powershell
If you already installed a beta, then the steps are these:
$ brew update
$ brew cask reinstall powershell
Note that after installation, it is known as pwsh
(at least one of the betas named it powershell
) to set PowerShell Core apart from PowerShell*:
$ pwsh --version
PowerShell v6.0.2
Via: [WayBack] PowerShell Core 6.0 is a new edition of PowerShell that is cross-platform (Windows, macOS, and Linux), open-source, and built for heterogeneous environm… – Lars Fosdal – Google+
*pwsh
versus powershell
There has been quite a discussion on the PowerShell Core repository on the rename, but I think it is for a good reason.
Too bad that during part of the beta, the old name powershell was used, but beta-time means things break every now and then.
PowerShell Core is sufficiently different from prior PowerShell versions to warrant a name change. This also makes it a lot easier to use them side-by-side.
Many other names (like posh
, pcsh
or psh
) were considered, usually because of naming conflicts with existing tools (like posh
) or easy confusion with existing shells (like pcsh
and csh
). A benefit on Linux/macOS is that it now ends with sh
like virtually all other shells.
More background information is at:
- [WayBack] Get-PowerShellBlog: Why pwsh Was Chosen For PowerShell Core
- [WayBack] pwsh rename motivation by the PowerShell Core committee · Issue #4214 · PowerShell/PowerShell · GitHub
- [WayBack] Side-by-Side execution · Issue #4214 · PowerShell/PowerShell · GitHub
- [WayBack] Setting false rename assumptions straight · Issue #4214 · PowerShell/PowerShell · GitHub
- [WayBack] Improve experience for side-by-side versions of PowerShell · Issue #4199 · PowerShell/PowerShell · GitHub
–jeroen
Leave a Reply