From 4ca96a17e906dc210494edb6ebf05099bad19ecb Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 12 Dec 2024 19:24:32 -0500 Subject: [PATCH] doc: inform bash and zsh user on alternative way to enable completions In case they do not want them permanently but available upon a quick Ctrl-r search through their recent history ;) --- src/goose/utils/autocomplete.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/goose/utils/autocomplete.py b/src/goose/utils/autocomplete.py index 6feb0807e..449ec9c8c 100644 --- a/src/goose/utils/autocomplete.py +++ b/src/goose/utils/autocomplete.py @@ -28,6 +28,7 @@ def setup_bash(install: bool) -> None: else: f = sys.stdout print(f"# add the following to your bash config, typically {bashrc}") + print(f"# or run source <(goose shell-completions --generate)") with f: f.write('eval "$(_GOOSE_COMPLETE=bash_source goose)"\n') @@ -67,6 +68,7 @@ def setup_zsh(install: bool) -> None: else: f = sys.stdout print(f"# add the following to your zsh config, typically {zshrc}") + print(f"# or run source <(goose shell-completions --generate)") with f: f.write("autoload -U +X compinit && compinit\n")