mac电脑部署安装powershell

部署安装powershell

要在mac部署安装powershell,可以使用homebrew来进行部署安装,故其步骤如下:

  • 安装homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 

  • 利用brew部署安装powershell

brew install --cask powershell

  • 验证powershell是否安装成功

pwsh

  • 卸载powershell

brew uninstall --cask powershell

参考资料

Installing PowerShell on macOS - PowerShell | Microsoft Learn

你可能感兴趣的:(macos,powershell)