部署安装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
本文指导如何在Mac上通过Homebrew工具安装PowerShell,包括安装Homebrew、使用`brewcaskinstallpowershell`部署PowerShell,以及验证安装并能执行`pwsh`,最后提供卸载的命令`brewcaskuninstallpowershell`。
109

被折叠的 条评论
为什么被折叠?



