zsh-syntax-highlighting
1.1、zsh-syntax-highlighting简介
是什么 ?:a syntax highlighting plugin for zsh
开发语言:zsh
源码仓库:https://github.com/zsh-users/zsh-syntax-highlighting
1.2、在macOS中安装zsh-syntax-highlighting

step1、通过HomeBrew安装zsh-syntax-highlighting

brew install zsh-syntax-highlighting

step2、在~/.zshrc中添加如下配置

source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

step3、使配置生效

source ~/.zshrc
1.3、Oh My Zsh用户安装zsh-syntax-highlighting

step1、通过git下载zsh-syntax-highlighting源代码

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

step2、在~/.zshrc中添加如下配置

plugins=( [plugins...] zsh-syntax-highlighting)

step3、使配置生效

source ~/.zshrc