Update README.md

Adds step to install zsh-completions using Homebrew Formulae.
This commit is contained in:
D 2022-10-12 13:28:40 +05:30 committed by GitHub
parent 879f4b6515
commit 3cbe4e2817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 0 deletions

View File

@ -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: