zsh compinit: insecure files, run compaudit for list.

zsh compinit: insecure files, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? 

输入compaudit后输出如下:

/usr/local/share/zsh/site-functions/_brew
/usr/local/share/zsh/site-functions/_brew_cask
/usr/local/share/zsh/site-functions/_brew_services
/usr/local/share/zsh/site-functions/_carthage

多次尝试该权限无果,解决办法如下,需要更新4个文件的所有者:

sudo chown root /usr/local/share/zsh/site-functions/_brew

Cheers~

posted @ 2020-06-11 18:27  r1char  阅读(1307)  评论(2编辑  收藏  举报