是什么 ? | : | a syntax highlighting plugin for zsh |
开发语言 | : | zsh |
源码仓库 | : | https://github.com/zsh-users/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
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