zshのインストール
zshは前から高機能だということで聞いていたですが、なかなか手が出せずにいたのでこれを機に使い込んでみようかと思っています。
先日インストールしたHomebrewを使ってで普通に brew install zsh としてインストールしましたが、インストールの最後で以下のようなコメントが出たので、
To use this build of Zsh as your login shell, add it to /etc/shells. If you have administrator privileges, you must fix an Apple miss configuration in Mac OS X 10.7 Lion by renaming /etc/zshenv to /etc/zprofile, or Zsh will have the wrong PATH when executed non-interactively by scripts. Alternatively, install Zsh with /etc disabled: brew install --disable-etcdir zsh
一旦アンイストールしてから以下のコマンドでインストールし直しました。
$ brew install --disable-etcdir zsh
こちらを参考にさせていただきました。
あとはzshを通常使うシェルに登録します。
$ sudo emacs /etc/shells (/usr/local/bin/zshを追加) $ chsh (/bin/bashを/usr/local/bin/zshに修正)
追記(2012/11/19):
zshはいろいろな機能があるそうなのですが、今はとりあえずoh-my-zshを入れて使っています。
$ cd ~ $ git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh $ cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc