Terminal & zsh & oh-my-zsh配置

1.查看shell

cat /etc/shells

《Terminal & zsh & oh-my-zsh配置》

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.设置热键和半透明

《Terminal & zsh & oh-my-zsh配置》

《Terminal & zsh & oh-my-zsh配置》

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

修改配置里的字体:

《Terminal & zsh & oh-my-zsh配置》

《Terminal & zsh & oh-my-zsh配置》

参考:

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

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

    原文作者:Zhuxy
    原文地址: https://segmentfault.com/a/1190000006866629
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞