【笔记】MacOS上使用PowerShell

前言

MacOS上使用PowerShell

下载依赖

1
brew install powershell

添加环境变量

1
echo 'export PATH="$PATH:/usr/local/microsoft/powershell/7"' >> ~/.zshrc

启动PowerShell终端

1
pwsh

使用powershell命令启动Powershell终端

添加环境变量

1
echo 'alias powershell="/usr/local/microsoft/powershell/7/pwsh"' >> ~/.zshrc

启动PowerShell终端

1
powershell

完成