zsh 目录权限和安全问题
2019-01-18 本文已影响17人
西电大侠
执行过sudo chown -R $(whoami):admin /usr/local && sudo chmod -R g+rwx /usr/local后,发现zsh报错
[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