osxのターミナルの設定(oh-my-zsh、Solarized)
oh-my-zshのインストール
本家 https://github.com/robbyrussell/oh-my-zsh
- ダウンロード
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
- .zshrcのテンプレートをコピー
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
- .zshrcを再読み込み
source ~/.zshrc
プラグインの設定
rubyとRails関連のプラグインを設定
プラグインは~/.oh-my-zsh/pluginsにあるので、.zshrcに
適当に追加する。
- プラグインの設定
.zshrcを編集
plugins=(git ruby osx bundler brew reails emoji-clock)
※初期はplugins=(git)
となっている。
テーマの設定
テーマは~/.oh-my-zsh/themes/に入っている どんなテーマがあるかは↓を参考にする https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
- テーマをblinksに変更
.zshrcを編集
ZSH_THEME="blinks"
Terminal.appのカラースキーマの設定
blinksの説明の部分でSolarizedの設定を使用しているので、カラースキーマの変更をする。
Solarizedをダウンロード
本家:http://ethanschoonover.com/solarized
git clone git://github.com/altercation/solarized.git
ターミナルの設定変更
「ターミナル」→「環境設定」→「設定」タブ→下の方のツールマーク→「読み込む」
solarized/osx-terminal.app-colors-solarized/xterm-256color
を指定する