[oh-my-zsh] Insecure completion-dependent directories detected:
drwxr-xr-x 6 501 admin 204 3 2 2016 /usr/local/share/zsh
drwxr-xr-x 8 501 admin 272 10 10 2016 /usr/local/share/zsh/site-functions
[oh-my-zsh] For safety, completions will be disabled until you manually fix all
[oh-my-zsh] insecure directory permissions and ownership and restart oh-my-zsh.
[oh-my-zsh] See the above list for directories with group or other writability.

发布于 2019-07-17 20:30:52
尝试更改.oh-my-zsh/权限:
➜ sudo chmod -R 755 ~/.oh-my-zsh如果没有帮助,可以尝试:
➜ chmod 755 /usr/local/share/zsh
➜ chmod 755 /usr/local/share/zsh/site-functions发布于 2020-05-19 15:54:22
适用于那些使用MacOs并预先构建了zsh并在上面安装了oh-my-zsh的人(类似的错误)
compaudit | xargs chmod g-w,o-w这可能会解决这个问题。
发布于 2018-05-30 06:07:11
我在最近的ohmyzsh更新中遇到了类似的问题。.oh-my-zsh下的一个目录具有777权限。将该目录更改为755解决了我的问题。我不知道这是否会对您有帮助,因为这些文件夹似乎已经有755个权限。尝试导航到这些文件夹并手动检查权限。
https://stackoverflow.com/questions/50499750
复制相似问题