从github上克隆zsh-autosuggestions终端命令自动推荐插件不好使,使用如下命令可解决该问题
git clone https://gitee.com/hailin_cool/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
首先打开zshrc文件
open ~/.zshrc
然后再.zshrc里面找到plugins,在plugins里面加上zsh-autosuggestions
plugins(zsh-autosuggestions)
保存后退出执行如下命令:
source ~/.zshrc
大功告成~