-
-
Save Guang1234567/c6b8fe753d413367a1aa1be23a9931f9 to your computer and use it in GitHub Desktop.
Notes on using Homebrew Zsh as default login shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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