安装zsh插件失败的解决方法

[oh-my-zsh] plugin 'zsh-syntax-highlighting' not found
[oh-my-zsh] plugin 'zsh-autosuggestions' not found

最近安装zsh的插件的时候遇到这个问题,重新安装zsh后依然无法解决,在网上查询后发现是因为没有把插件安装到指定位置引起的。

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

然后编辑~/.zshrc文件

vim ~/.zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

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

你可能感兴趣的:(安装zsh插件失败的解决方法)