【笔记】MacOS上使用PowerShell 发表于 2024-09-29 更新于 2025-12-19 阅读次数: 前言MacOS上使用PowerShell 下载依赖1brew install powershell 添加环境变量1echo 'export PATH="$PATH:/usr/local/microsoft/powershell/7"' >> ~/.zshrc 启动PowerShell终端1pwsh 使用powershell命令启动Powershell终端添加环境变量1echo 'alias powershell="/usr/local/microsoft/powershell/7/pwsh"' >> ~/.zshrc 启动PowerShell终端1powershell 完成