要在mac部署安装powershell,可以使用homebrew来进行部署安装,故其步骤如下:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install --cask powershell
pwsh
brew uninstall --cask powershell
Installing PowerShell on macOS - PowerShell | Microsoft Learn