From 3cbe4e2817eca2c71243d730622cf3674326dde8 Mon Sep 17 00:00:00 2001 From: D <49444980+dpthegrey@users.noreply.github.com> Date: Wed, 12 Oct 2022 13:28:40 +0530 Subject: [PATCH] Update README.md Adds step to install zsh-completions using Homebrew Formulae. --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index ba030cc..463679c 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,32 @@ Note: adding it as a regular Oh My ZSH! plugin will not work properly (see [#603 Add `zinit light zsh-users/zsh-completions` to your `~/.zshrc`. +### Using Homebrew + +### [Brew](https://github.com/Homebrew/brew) +* Install command: + + brew install zsh-completions + +* To activate these completions, add the following to your `~/.zshrc`: + + ```sh + 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 -R go-w '$(brew --prefix)/share/zsh' + ### Manual installation * Clone the repository: