From e64ebaf10e639f229187547eac5f4e1dc264cf4a Mon Sep 17 00:00:00 2001 From: Yedaya Katsman Date: Thu, 5 Feb 2026 18:24:05 +0200 Subject: [PATCH] completions: Update instruction for installing /etc/bash_completion.d/ is meant for backwards compatibility, the recommended way is to have the file in `/usr/share/bash-completion/completions/.bash`. --- completions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completions.go b/completions.go index d3607c2d2..5d40bbe6e 100644 --- a/completions.go +++ b/completions.go @@ -814,11 +814,11 @@ To load completions for every new session, execute once: #### Linux: - %[1]s completion bash > /etc/bash_completion.d/%[1]s + %[1]s completion bash > /usr/share/bash-completion/completions/%[1]s.bash #### macOS: - %[1]s completion bash > $(brew --prefix)/etc/bash_completion.d/%[1]s + %[1]s completion bash > $(brew --prefix)/share/bash-completion/completions/%[1]s.bash You will need to start a new shell for this setup to take effect. `, c.Root().Name()),