This commit is contained in:
D 2024-02-07 02:36:11 -07:00 committed by GitHub
commit 7681dfb142
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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: