- Open Terminal
- Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)""
- Install PowerShell
brew install --cask powershell
- Add Homebrew to your PATH.
- Replace {username} with your own username.
echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/{username}/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/{username}/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- Test if it was successful
pwsh