install
sudo apt update
sudo apt install zshsh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"chsh -s $(which zsh)
安装 zsh-syntax-highlighting 插件:
cd ~/.oh-my-zsh/custom/pluginsgit clone https://github.com/zsh-users/zsh-syntax-highlighting在 ~/.zshrc 文件中启用插件。找到 plugins 配置项,将其修改为包含 zsh-syntax-highlighting:
plugins=(zsh-syntax-highlighting)source ~/.zshrc