for example, when i start terminal and type brew install spot
and press TAB - nothing, only dir like a Desktop/
, but when i exec zsh
everything magically starts working
Add it to your .zshrc
:
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
fi