一、复制下面两行代码,到命令行
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
二、通过下面代码,打开环境变量配置
open -e .zshrc
三、在环境变量中,增加两个插件,保存后退出
四、退出终端,再次登录就好了