pwsh
from a terminal.brew
command is not found, you need to install Homebrew following their instructions.Otherwise you may install PowerShell via Direct Download or from Binary Archives.$PSVersionTable
.$PSVersionTable
.powershell-6.2.0-osx-x64.pkg
from the releases page onto your macOS machine.tar.gz
archives are provided for the macOS platformto enable advanced deployment scenarios.brew install openssl
.sudo port selfupdate
.sudo port upgrade outdated
.sudo port install openssl
.sudo rm
.$PSHOME
is /usr/local/microsoft/powershell/6.2.0/
~/.config/powershell/profile.ps1
$PSHOME/profile.ps1
~/.local/share/powershell/Modules
/usr/local/share/powershell/Modules
$PSHOME/Modules
~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
Microsoft.PowerShell_profile.ps1
in the same locations./usr/local
is used instead of /opt
.So, $PSHOME
is /usr/local/microsoft/powershell/6.2.0/
, and the symbolic link is placed at /usr/local/bin/pwsh
.