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 没有报错。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM