Commit 42eb36a3 by Federico Jaramillo Martínez Committed by Sébastien Eustace

Autocomplete instructions for Zsh with Homebrew (#1127)

parent 269e91c6
...@@ -82,13 +82,16 @@ poetry completions fish > ~/.config/fish/completions/poetry.fish ...@@ -82,13 +82,16 @@ poetry completions fish > ~/.config/fish/completions/poetry.fish
# Zsh # Zsh
poetry completions zsh > ~/.zfunc/_poetry poetry completions zsh > ~/.zfunc/_poetry
# Zsh (macOS/Homebrew)
poetry completions zsh > $(brew --prefix)/share/zsh/site-functions/_poetry
``` ```
*Note:* you may need to restart your shell in order for the changes to take *Note:* you may need to restart your shell in order for the changes to take
effect. effect.
For `zsh`, you must then add the following line in your `~/.zshrc` before For `zsh`, you must then add the following line in your `~/.zshrc` before
`compinit`: `compinit` (not for homebrew setup):
```zsh ```zsh
fpath+=~/.zfunc fpath+=~/.zfunc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment