There was an error while loading. Please reload this page.
根據 http://blog.longwin.com.tw/2011/10/macosx-shell-zsh-2011/ 安裝 zsh
Mac 本身自帶 zsh,所以只要 chsh -s /bin/zsh即可
chsh -s /bin/zsh
cd ~/
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.zshrc ~/.zshrc.orig
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
vim .zshrc
#ZSH_THEME="robbyrussell" ZSH_THEME="agnoster"
plugins=(git osx) # 啟用 git, osx 的 plugin, ~/.oh-my-zsh/plugins 有更多可以參考
plugins=(git osx)
此時安裝完畢,可以新開 Tab 生效。
由於 agnoster 需要特殊字型。
所以必須安裝 patched 過的三個字體:https://gist.github.com/1595572。(下載後雙擊安裝這三個字體。)
SOLARIZED 布景是特殊調製的一個背景。按此 下載 最新版本。
解壓縮後裡面有很多布景。
Preference
Profiles
Colors
Load Presets
Import
iterm2-colors-solarized
Solarized Dark
Text
修改 ~/.zshrc 換成以下內容 https://gist.github.com/sdlong/527ce5c44359e4539822cbed37a35861
修改 ~/.oh-my-zsh/themes/agnoster.zsh-theme 換成以下內容 https://gist.github.com/sdlong/36cde59ac83367f85830b340698169a3