MAC iTerm2 + Oh-my-zsh 的Theme 設定教學


1. 先到 Oh-my-zsh 的github看Tutorial
https://github.com/robbyrussell/oh-my-zsh

2. Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

3. Change Theme  這邊我是用看起來最酷的agnoster (其它可以參照 https://github.com/robbyrussell/oh-my-zsh/wiki/themes)

vim ~/.zshrc


ZSH_THEME="agnoster" # (this is one of the fancy ones)
# you might need to install a special Powerline font on your console's host for this to work
# see https://github.com/robbyrussell/oh-my-zsh/wiki/Themes#agnoster

下戴font patch
https://github.com/robbyrussell/oh-my-zsh/wiki/Themes#agnoster
# clone
git clone https://github.com/powerline/fonts.git
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts

裝好之後在iTerm2 上要對Text做設定
把 ASCII 跟 Non-ASCII的字型都要選擇 Meslo LG才行
這樣就會看到後面這個很不錯的字型了


留言