Skip to content

Instantly share code, notes, and snippets.

@ngocphamm
Last active February 14, 2024 18:06
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ngocphamm/4978435 to your computer and use it in GitHub Desktop.
Save ngocphamm/4978435 to your computer and use it in GitHub Desktop.
Notes on using Homebrew Zsh as default login shell
1. Install Zsh with Homebrew
brew install zsh
2. Add "/usr/local/bin/zsh" to "/etc/shells" file
sudo vim /etc/shells
3. Change to default login shell
chsh -s /usr/local/bin/zsh $USER
4. 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)
5. Create "/usr/local/share/zsh/site-functions" directory to match with what's in "echo $FPATH" output
6. Support homebrew completion with the command
ln -s /usr/local/Library/Contributions/brew_zsh_completion.zsh /usr/local/share/zsh/site-functions/_brew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment