macをzshに変更
インストールされているか確認
(標準でインストールされています)
$ zsh --version zsh 5.0.5 (x86_64-apple-darwin14.0)
最新化
$ brew install zsh
使用可能なshell一覧/etc/shells
に、brewでインストールしたzsh/usr/local/bin/zsh
を追加
# List of acceptable shells for chpass(1). # Ftpd will not allow users to connect who are not using # one of these shells. /bin/bash /bin/csh /bin/ksh /bin/sh /bin/tcsh /bin/zsh /usr/local/bin/zsh
ログインシェルの確認
$ echo $SHELL /bin/bash
zshに変更
$ chsh -s /usr/local/bin/zsh Changing shell for Username. Password for Username: chsh: no changes made
※chsh: no changes made
と言われた場合、
システム環境設定から変更する
ユーザとグループ > (右クリックで)詳細オプション > 設定後、OKで完了
zshに変更したら、ターミナルを再起動後、ログインシェルの確認
$ echo $SHELL /usr/local/bin/zsh
zshrcを編集
/Users/onoeiko/.zshrc
をお好みで
.zshrcの設定を反映させる
$ source ~/.zshrc
再度ターミナルを起動