Fix Zsh Environment

Takashi Yoshida bio photo By Takashi Yoshida

I hit a small problem when setting up my MacBook Pro with macOS Sierra.

Zsh and Its Insecure directories

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

Use compaudit to show you where the problems are.

% compaudit
There are insecure directories:
/usr/local/share/zsh/site-functions
/usr/local/share/zsh

Remove the write permission from group at the following directories.

% chmod g-w /usr/local/share/zsh/site-functions
% chmod g-w /usr/local/share/zsh