From 09463b601d7110709beb70e594be71fe0957195b Mon Sep 17 00:00:00 2001 From: relikd Date: Wed, 10 Sep 2025 13:48:44 +0200 Subject: [PATCH] fix: readme auto-complete --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 03785c7..f73d32c 100644 --- a/README.md +++ b/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 -# shell-completion in zsh -if [ -d "$BREW_PY_CELLAR/share/zsh/site-functions" ]; then - fpath=($BREW_PY_CELLAR/share/zsh/site-functions $fpath) -fi +# brew.py zsh auto-complete +fpath=($BREW_PY_CELLAR/share/zsh/site-functions $fpath) +# if not defined already: +autoload -Uz compinit && compinit ```