Iterm2-ohmyzsh-常用插件安装

2019-06-19  本文已影响0人  _backtrack_

oh-my-zsh 常用插件

1 自动跳转Finder、终端语法高亮、终端自动补全 (autojump|zsh-syntax-highlighting|zsh-autosuggestions)

1. git clone https://github.com/wting/autojump.git $ZSH_CUSTOM/plugins/autojump
2. git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
3. git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
4. vim ~/.zshrc
5. plugins=(git zsh-autosuggestions zsh-syntax-highlighting autojump)
6. source  ~/.zshrc
7. enjoy it.

2 zsh 最炫酷的主题配置

1. 安装好 iterm2 与 zsh 后
2. vim ~/.zshrc
3. 修改 ZSH_THEME="agnoster" 
4. source ~/.zshrc
5. 下载该主题必须的字体源码 git clone https://github.com/powerline/fonts.git
7.  sudo sh fonts/install.sh
8.  打开 iterm2 -> preference-> profiles->text->font 选择安装meslo开头的字体
如图 f-1
9. 打开 iterm2 -> preference-> profiles->color->color presets 选择安装 solorized dark 配色
如图 f-2
10. 最终效果如下
如图 f-3

图例

f-1
f-2
f-3
上一篇下一篇

猜你喜欢

热点阅读