近兩天來,github上的“斬星狂魔”當屬微軟發(fā)布的Windows Terminal,暫且不論它的功能屬性,光看這新界面,香不???

身為高(zhuang)級(bi)的mac用戶,這肯定忍不了,但是打開終端看一眼,哎,太丑了!辦法總是人想出來的,window都能土雞變鳳凰,mac沒道理不行,我靈機一動,得到了一個全新的terminal

那么這個東西到底怎么裝呢? 所需材料:
1.安裝: iTerm2
進入Preferences->Color Presets可選擇主題

2.打開iTerm2, 輸入以下命令安裝 oh-my-zsh
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/
install.sh | sh

3.安裝主題: Spaceship Prompt
依次在iTerm中運行以下兩條命令
git clone https://github.com/denysdovhan/spaceship-prompt.git
"$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme"
"$ZSH_CUSTOM/themes/spaceship.zsh-theme"
完成后使用vim進入.zshrc,設置 ZSH_THEME="spaceship"
4.安裝字體 Powerline Fonts
spaceship安裝之后,還有些細節(jié)不夠完美,比如

這是字體不支持所導致的,還需安裝Powerline Fonts
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
安裝完成后進入iTerm2 Preferences->Text->Font->Mselo

5.配色
配色是非常重要的一步,進入Preferences,Transparency調整透明度,勾選Blur調整毛玻璃效果,Colors進行字體配色調整

o**k 大功告成

