source ~/.zshrc [oh-my-zsh] plugin 'zsh-syntax-highlighting' not found

source ~/.zshrc
[oh-my-zsh] plugin 'zsh-syntax-highlighting' not found

 

 

参考https://github.com/ohmyzsh/ohmyzsh/issues/7688

I solve it by the command :

'''
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
'''

on-my-zsh check if the plugin is exit at '$base_dir/plugins/$name/$name.plugin.zsh' or '$base_dir/plugins/$name/_$name' , so the plugin should be at this path .

 

我直接执行的第2条红色那条命令,第1条命令提示我已经存在。

 

验证:再次执行source ~/.zshrc 没有报错。

posted @ 2021-04-15 21:27  阳光美美哒  阅读(4597)  评论(0编辑  收藏  举报