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