每次我打开一个新终端我都会看到这个并且不知道如何修复

Everytime I open a new terminal I see this and don't know how to fix

我在 MacBook Pro(2012 年中)中使用 MacOs Catalina 10.15.6。

我真的是编程新手,我不知道为什么当我打开我的终端时总是出现这个:

Last login: Tue Jul 28 18:43:18 on ttys002
[oh-my-zsh] Insecure completion-dependent directories detected:
drwxrwxr-x  7 luigiminardi  admin  224 Jul 24 16:14 /usr/local/share/zsh
drwxrwxr-x  7 luigiminardi  admin  224 Jul 24 15:59 /usr/local/share/zsh/site-functions

[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.

[oh-my-zsh] To fix your permissions you can do so by disabling
[oh-my-zsh] the write permission of "group" and "others" and making sure that the
[oh-my-zsh] owner of these directories is either root or your current user.
[oh-my-zsh] The following command may help:
[oh-my-zsh]     compaudit | xargs chmod g-w,o-w

[oh-my-zsh] If the above didn't help or you want to skip the verification of
[oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to
[oh-my-zsh] "true" before oh-my-zsh is sourced in your zshrc file.

我在.zshrc中所做的所有修改都是为了把这个:

# ASDF INSTALLED ON BREW
. $(brew --prefix asdf)/asdf.sh

之后:

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#

但我不知道它是否在正确的位置,或者这是否是问题的原因。

zshrc 文件中设置 ZSH_DISABLE_COMPFIX=true,在 $ZSH/oh-my-zsh.sh.

之前

这将跳过不安全目录的验证:https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/compfix.zsh