開発メモ

開発メモ

osxのターミナルの設定(oh-my-zsh、Solarized)


oh-my-zshのインストール


本家 https://github.com/robbyrussell/oh-my-zsh

  1. ダウンロード
    git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
  2. .zshrcのテンプレートをコピー
    cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
  3. .zshrcを再読み込み source ~/.zshrc

プラグインの設定


rubyRails関連のプラグインを設定
プラグインは~/.oh-my-zsh/pluginsにあるので、.zshrcに 適当に追加する。

  1. プラグインの設定
    .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

  1. テーマをblinksに変更
    .zshrcを編集
    ZSH_THEME="blinks"

Terminal.appのカラースキーマの設定


blinksの説明の部分でSolarizedの設定を使用しているので、カラースキーマの変更をする。

  1. Solarizedをダウンロード
    本家:http://ethanschoonover.com/solarized
    git clone git://github.com/altercation/solarized.git

  2. ターミナルの設定変更
    「ターミナル」→「環境設定」→「設定」タブ→下の方のツールマーク→「読み込む」
    solarized/osx-terminal.app-colors-solarized/xterm-256colorを指定する