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 沒有報錯。
