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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容