[[Mac全般]]

*環境 [#k793431e]
-MacOS 10.11
-zsh

*zshのインストール+デフォルトのシェルをbashからzshに変更する手順 [#v00a7a55]
 $ brew install zsh
 $ which zsh
 /usr/local/bin/zsh
 $ sudo vim /etc/shells
 一番最後の行に追加
 /usr/local/bin/zsh
 $ chsh -s /usr/local/bin/zsh NAME

*oh-my-zshの導入 [#f1911999]
 git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
 cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

*powerline-fontの導入 [#t7785915]
 変更前
 echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
  ±  ➦ ✘ ⚡ ⚙
 
 $ git clone https://github.com/powerline/fonts.git
 $ cd fonts
 $ ./install.sh
 $ echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
  ±  ➦ ✘ ⚡ ⚙
 note:文字化けが解消しない場合、itermで使用しているフォントの問題の可能性があります。iterm上でpowerlineとついたフォントを選択すると、解消する可能性があります。

*gitも補完対象にする [#z08f9466]
 $ brew install zsh-completions
 $ brew install zsh-completions
 $ vim .zshrc
 下記を追記
 fpath=("inoremap " "/path/to/homebrew/share/zsh-completions $fpath)
 
 autoload -U compinit
 compinit -u")ZSH_THEME="powerline"ZSH_THEME="powerline"

*zsh powerlineテーマへ変更する [#ca76ee64]
 $ git clone https://github.com/jeremyFreeAgent/oh-my-zsh-powerline-theme.git
 $ cd oh-my-zsh-powerline-theme
 $ ./install_in_omz.sh
 $ vim .zshrc
 ZSH_THEME="powerline"
 もしくは
 ZSH_THEME="agnoster"
 $ source .zshrc

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS