自动提示插件zsh-autosuggestions:
git clone https://gitee.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
语法高亮zsh-syntax-highlighting:
git clone https://gitee.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
找到plugins 在后面追加 逗号分割,逗号前后需要有间距
sudo vim ~/.zshrc
plugins=(
git ,
zsh-autosuggestions ,
zsh-syntax-highlighting
)
重新加载~/.zshrc
source ~/.zshrc
有帮助请点赞,不胜感激!!!