Skip to content

Instantly share code, notes, and snippets.

@Guang1234567
Forked from ngocphamm/Homebrew Zsh on Mac
Created September 3, 2023 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Guang1234567/c6b8fe753d413367a1aa1be23a9931f9 to your computer and use it in GitHub Desktop.
Save Guang1234567/c6b8fe753d413367a1aa1be23a9931f9 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