zshoh-my-zshzshrczsh-completion

ZSH Completions based on a directory, works after only after 'exec zsh'


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


Solution

  • Add it to your .zshrc:

    if type brew &>/dev/null
        then
          FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
        
          autoload -Uz compinit
          compinit
        fi