執(zhí)行過(guò)sudo chown -R $(whoami):admin /usr/local && sudo chmod -R g+rwx /usr/local后鳍置,發(fā)現(xiàn)zsh報(bào)錯(cuò)
[oh-my-zsh] For safety, we will not load completions from these directories until
[oh-my-zsh] you fix their permissions and ownership and restart zsh.
[oh-my-zsh] See the above list for directories with group or other writability.
解決辦法:
chmod 755 /usr/local/share/zsh
chmod 755 /usr/local/share/zsh/site-functions