Skip to content

Commit

Permalink
Update Zsh completions config for Homebrew
Browse files Browse the repository at this point in the history
https://github.com/zsh-users/zsh-completions

Output after `brew upgrade`:

```
==> Caveats
==> zsh-completions
To activate these completions, add the following to your .zshrc:

  if type brew &>/dev/null; then
    FPATH=$(brew --prefix)/share/zsh-completions:$FPATH

    autoload -Uz compinit
    compinit
  fi

You may also need to force rebuild `zcompdump`:

  rm -f ~/.zcompdump; compinit

Additionally, if you receive "zsh compinit: insecure directories"
warnings when attempting to load these completions, you may need to run
this:

  chmod go-w '/usr/local/share'
```
  • Loading branch information
br3ndonland committed Jun 20, 2020
1 parent 927e0c0 commit c496edb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,9 @@ bindkey '^N' kill-buffer # ctrl+n delete all lines
bindkey '^_' undo # ctrl+/ undo
bindkey '^\' redo # ctrl+\ redo
### ---------------------------- Integrations ----------------------------- ###
fpath+=~/.zfunc:/usr/local/share/zsh-completions
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

0 comments on commit c496edb

Please sign in to comment.