zsh语法高亮及语法补全插件安装

语法高亮插件

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git 

echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc

source .zshrc

语法提示插件

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

Vim ~/.zshrc    #编辑zsh配置文件

plugins=(git)    #找到这一行,改成下面内容
plugins=(git zsh-autosuggestions)

source .zshrc    #重新引用
最后修改:2021 年 04 月 08 日 07 : 05 PM
如果觉得我的文章对你有用,请随意赞赏