安装zsh-syntax-highlighting语法高亮插件
官网:https://github.com/zsh-users/zsh-syntax-highlighting
安装:
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
网友评论