近两天来,github上的“斩星狂魔”当属微软发布的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安装之后,还有些细节不够完美,比如

这是字体不支持所导致的,还需安装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 大功告成


网友评论