1.查看shell

cat /etc/shells

2.更换shell

chsh -s /usr/local/bin/zsh

注:要确保更改的shell在上面cat命令查看的文件里,不然会报错。

3.安装oh-my-zsh

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

4.创建配置文件

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

5.关闭重启terminal

6.更换主题

打开

~/.zshrc

修改

ZSH_THEME="ys" //名字就是下面模版去掉.zsh-theme

所有模版都在:

~/.oh-my-zsh/themes

命名格式:

3den.zsh-theme
Soliah.zsh-theme
adben.zsh-theme
...

7.设置热键和半透明

8.快捷键

https://www.zhihu.com/questio...

command + d  //竖分屏

command + shift +d //横分屏

开的窗口太多,查找光标

command + /

9.更改字体

克隆字体

git clone https://github.com/powerline/fonts

cd到fonts目录下运行

./install.sh

产生如下信息:

Copying fonts...
All Powerline fonts installed to /Users/zhuxinyong/Library/Fonts

修改配置里的字体:

参考:

http://blog.yuaz.net/archives...

http://macshuo.com/?p=676


ghostcode
854 声望16 粉丝