zsh problem: compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew
[oh-my-zsh] Solution, tested by myself and it works! ! ! !
## zsh problem: compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew
解决方法,亲测有效!
```zsh
sudo ln -fsv /opt/homebrew/completions/zsh/_brew /usr/local/share/zsh/site-functions/_brew
brew cleanup && source ~/.zshrc
```
Then it was solved hahaha. Look at the picture below. That’s right! mock up!