目录
  1. 1. autojump
    1. 1.1. 安装
  2. 2. zsh-autosuggestion
    1. 2.1. 安装
  3. 3. zsh-syntax-highlighting
    1. 3.1. 安装
  4. 4. 更新 ~/.zshrc
oh-my-zsh插件推荐

autojump

实现目录下的快速跳转,想去哪个目录直接j + 目录名 ,不需要一层一层的去cd了

autojump

安装

zsh
1
brew install autojump

zsh-autosuggestion

输入命令时可提示自动补全(灰色的为提示部分),按键盘的 → 即可自动补全(详细介绍

zsh-autosuggestion

安装

zsh
1
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

zsh-syntax-highlighting

对于zsh命令进行高亮显示,若语法错误显示红色(详细介绍

zsh-syntax-highlighting

安装

shell
1
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

更新 ~/.zshrc

我们在安装完插件后,需要在.zshrc中引用插件

.zshrc

plugins = {...}中添加好之后更新配置即可使用

zsh
1
source ~/.zshrc
文章作者: Izzio
文章链接: https://izzio.netlify.com/blog/software/mac/58166.html
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Seventy
ENG