- Homebrew installed
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> $HOME/.zprofile
-
brew install zsh -
Add
/opt/homebrew/bin/zshto/etc/shellsfile
sudo echo "/opt/homebrew/bin/zsh" >> /etc/shells
- Change to default login shell
chsh -s /opt/homebrew/bin/zsh $USER
-
Make sure new version of Zsh is in active echo $SHELL (should see "/usr/local/bin/zsh") echo $ZSH_VERSION (should see "5.0.2" instead of "4.3.11" bullt-in in OS X 10.8)
-
Create "/usr/local/share/zsh/site-functions" directory to match with what's in "echo $FPATH" output
-
Support homebrew completion with the command ln -s /usr/local/Library/Contributions/brew_zsh_completion.zsh /usr/local/share/zsh/site-functions/_brew
