-
Notifications
You must be signed in to change notification settings - Fork 54
setup termnial environment
Allen Cheng edited this page Mar 30, 2017
·
9 revisions
根據 http://blog.longwin.com.tw/2011/10/macosx-shell-zsh-2011/ 安裝 zsh
Mac 本身自帶 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 有更多可以參考
此時安裝完畢,可以新開 Tab 生效。
由於 agnoster 需要特殊字型。
所以必須安裝 patched 過的三個字體:https://gist.github.com/1595572。(下載後雙擊安裝這三個字體。)
SOLARIZED 布景是特殊調製的一個背景。按此 下載 最新版本。
解壓縮後裡面有很多布景。
-
Preference
->Profiles
->Colors
->Load Presets
->Import
,載入iterm2-colors-solarized
目錄下的兩個 itermcolors -
Preference
->Profiles
->Colors
->Load Presets
,載入Solarized Dark
。
-
Preference
->Profiles
->Text
換成 Menlo 14 字體
修改 ~/.zshrc 換成以下內容 https://gist.github.com/sdlong/527ce5c44359e4539822cbed37a35861
修改 ~/.oh-my-zsh/themes/agnoster.zsh-theme 換成以下內容 https://gist.github.com/sdlong/36cde59ac83367f85830b340698169a3