zsh报错 Insecure completion-dependent directories detected

错误:Insecure completion-dependent directories detected
在vi ~/.zshrc头部添加 ZSH_DISABLE_COMPFIX=true 没用的情况下
解决方法
终端输入

compaudit | xargs chmod g-w,o-w /home/用户名称/.oh-my-zsh/custom/plugins/zsh-autosuggestions

在这里插入图片描述
解决