From fda4de94af71130c7bcabe4d495eb87a71e37fa7 Mon Sep 17 00:00:00 2001 From: Himanshu Agrawal Date: Mon, 15 Jun 2026 01:17:27 +0530 Subject: [PATCH] docs: clarify bash completion location --- docs/cli/about.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/cli/about.md b/docs/cli/about.md index c2b7de130..504cefd47 100644 --- a/docs/cli/about.md +++ b/docs/cli/about.md @@ -19,7 +19,14 @@ Completion is achieved by saving a script and then executing it as a part of you Afterward, you'll need to start a new shell in order for the changes to take effect. === "Bash" - Save the script somewhere: + If your system uses bash-completion, save the script to the user completions directory: + + ```console + mkdir -p ~/.local/share/bash-completion/completions + _HATCH_COMPLETE=bash_source hatch > ~/.local/share/bash-completion/completions/hatch + ``` + + If bash-completion is not available, save the script somewhere: ```console _HATCH_COMPLETE=bash_source hatch > ~/.hatch-complete.bash