fix: readme auto-complete
This commit is contained in:
10
README.md
10
README.md
@@ -30,13 +30,13 @@ sudo ln -s $BREW_PY_CELLAR /opt/homebrew
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
And for auto-completion (zsh) add this to your `.zshrc`:
|
And for auto-completion (zsh) add this to your `.zshrc` (before `compinit`):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# shell-completion in zsh
|
# brew.py zsh auto-complete
|
||||||
if [ -d "$BREW_PY_CELLAR/share/zsh/site-functions" ]; then
|
fpath=($BREW_PY_CELLAR/share/zsh/site-functions $fpath)
|
||||||
fpath=($BREW_PY_CELLAR/share/zsh/site-functions $fpath)
|
# if not defined already:
|
||||||
fi
|
autoload -Uz compinit && compinit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user