本文内容转载自:
https://www.cnblogs.com/lfri/p/14217524.html
1. 下载插件
cd "$ZSH_CUSTOM/plugins"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
git clone https://github.com/zsh-users/zsh-autosuggestions.git
如果报错,将https
改成http
试试。
2. 配置 .zshrc 文件
# 将两个插件写入
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
3. 配置生效
source ~/.zshrc