使用 Brew 安装了 zsh-autosuggestions 、zsh-syntax-highlighting 两个插件,执行完 source 提示
[oh-my-zsh] plugin 'zsh-autosuggestions' not found
[oh-my-zsh] plugin 'zsh-syntax-highlighting' not found
查询 ZSH WIKI 得知插件要安装到 zsh/custom/plugins 路径下,于是将 brew 路径下的插件挪到了该路径下,在 zshrc 文件中添加了
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
plugins=(brew git zsh-autosuggestions zsh-syntax-highlighting)
再次 source ,除了 not found ,还提示
no such file or directory: /Users/xx/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
no such file or directory: /Users/xx/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
路径下有,还找不到就很奇怪,大佬们救救
1
AsuorZ 2023-09-20 10:39:29 +08:00 via Android
用 zap
|