安裝zsh-syntax-highlighting語法高亮插件
官網(wǎng):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