What does it mean and how can I fix it?
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]?
Running the compaudit returns the follows:
There are insecure directories:
/usr/local/share/zsh/site-functions
Note: This answer is from 2012.
This fixed it for me:
Credit: a post on zsh mailing list
EDIT: As pointed out by @biocyberman in the comments. You may need to update the owner of
site-functionsas well:On my machine (OSX 10.9), I do not need to do this but YMMV.
EDIT2: On OSX 10.11, only this worked:
Also
user:staffis the correct default permission on OSX, whereuseris actually your username (i.e.whoami, or$USER). In other words: