I migrated Mac’s default shell from bash to zsh, so here’s a memo of the steps. (Last updated: 2014/11/19)
I don’t use the zsh that comes installed by default, but instead install the latest version with homebrew.
Preparation
Set the path to use zsh installed with Homebrew.
$ export PATH=/usr/local/bin:$PATH
Install zsh with Homebrew
$ brew install zsh
$ brew install zsh-completions
$ zsh --version
zsh --version
zsh 5.0.5 (x86_64-apple-darwin14.0)
$ which zsh
/usr/local/bin/zsh
Change Login Shell to zsh
$ sudo sh -c "echo '/usr/local/bin/zsh' >> /etc/shells"
$ chsh -s /usr/local/bin/zsh
Creating .zshrc
Create and edit the .zshrc file to customize settings.
I mostly rely on oh-my-zsh, so I’ll install and configure oh-my-zsh.
・[Zsh] oh-my-zsh のインストールと設定方法 | CodeNote.net
Apply .zshrc Settings
$ source ~/.zshrc
That’s all.
Reference Information
・Macでhomebrewのzshを使う - Qiita [キータ]
・Homebrewでzsh-completionsを利用する手順。
That’s all from the Gemba.