一直觉得用好命令行是件很美好很幸福的事情,可是系统自带的终端太过简陋,于是没有更多废话请看最终效果图:
最终效果.png首先安装item2: 下载地址
item2.pngitem自带 zsh shell,用Oh My Zsh来美化一下:
oh my zsh下载
懒得翻的直接在item2里输入指令:
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
安装过程是这个样子的:
oh my zsh.png自带的theme用起来还是不爽,个人比较喜欢用这个:
https://github.com/agnoster/agnoster-zsh-theme
使用这个主题了,Finder->前往文件夹-> 到"~/.zshrc"目录下,然后文本编辑打开.zshhrc文件,找到:
.zshhrc.png改成
ZSH_THEME="agnoster"
安装这个主题需要额外的font支持:
Powerline-patched font
直接clone到本地,然后在终端cd到工程目录下 ./install.sh 来进行安装
font安装.png安装好后在item2的preferences里找到Color Presets:
Color Presets.png选择Solarrized Dark:
Solarrized Dark.png然后这时候item2上还是有字体会显示错误:
字体错误.png接下来修改一下使用字体(最好使用之前安装的powerline字体):
字体1.png 字体2.png教程到这里就结束了,享受吧。
网友评论