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~