if type brew &>/dev/null; then fpath=( $(brew --prefix)/share/zsh-completions "${fpath[@]}" ) fi # If you receive "zsh compinit: insecure directories" warnings when attempting # to load these completions, you may need to run these commands: # chmod go-w '/opt/homebrew/share' # chmod -R go-w '/opt/homebrew/share/zsh' # compinit will load and run after this in .zshrc