iTerm 環境設定
iTerm で個人的に好きな環境設定についてまとめる。
Table of contents
Font and Theme
気に入ってるフォントとテーマを設定する手順
Powerline font のインストール
git clone https://github.com/powerline/fonts
cd fonts
./install.sh
cobalt2 theme のインストール
git clone https://github.com/wesbos/Cobalt2-iterm.git
cd Cobalt2-iterm
cp cobalt2.zsh-theme ~/.oh-my-zsh/themes/
zsh theme の変更
$ vi ~/.zshrc
ZSH_THEME="cobalt2"
# デフォルト値は「robbyrussell」
UI からテーマ変更
- iTerm2 > Preferences > Profiles > Colors
- Change Font ボタンをクリックする
- Color Presets.. プルダウンで import.. を選択する
cobalt2.zsh-theme
を選択する- Color Presets.. プルダウンで Cobalt2 を選択する
oh my zsh だと git branch でファイル vi で開いちゃう問題
git branch
のページ出力をデフォルトで off に戻すには、pager.branch
の設定を変更すればOK
参考:
・Git branch command behaves like ‘less’
git config --global pager.branch false