macOS上安装PowerShell Core

1.先安装Brew命令,安装命令如下:

curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1

2.安装 PowerShell Core,命令如下

brew cask install powershell

3.验证安装是否成功,macOS 终端中输入“pwsh”可进入 PowerShell


后期更新,可执行一下两个命令:

brew update
brew cask upgrade powershell

猜你喜欢

转载自blog.51cto.com/281816327/2404509