mac zsh 插件 zsh-syntax-highlighting zsh-autosuggestions 安装 小记

602 阅读1分钟

前情提要:因为安装过程中,经常因为墙的原因导致443

所以要修改hosts到香港的ip地址

sudo vim /etc/hosts

在hosts文件里添加这行内容:

151.101.76.133 raw.githubusercontent.com

然后你安装zsh 和插件会大大降低 443出现,如果不行,再clone一次

zsh的github地址:github.com/ohmyzsh/ohm…

如果出现以下情况

     Warning: plugin zsh-syntax-highlighting not found
     Warning: plugin zsh-autosuggestions not found

解决方法

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

参考资料: github.com/ohmyzsh/ohm… oh-my-zsh官网: ohmyz.sh/