Skip to content

Commit 95e0f92

Browse files
committed
Point to /usr/share/bash-completion/completions for system bash completions
/etc/bash_completion.d works too, but the downside is that everything there is loaded eagerly at bash_completion load time, slowing down shell startup. From /usr/share/bash-completion/completions completion files are loaded on demand. This mechanism is available as of bash-completion version 2 and later, just like the ~/.local/share/bash-completion/completions one that is already suggested for user-specific completions.
1 parent 46973d6 commit 95e0f92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cli/help.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ pub(crate) static COMPLETIONS_HELP: &str = r"DISCUSSION:
167167
168168
BASH:
169169
170-
Completion files are commonly stored in `/etc/bash_completion.d/` for
170+
Completion files are commonly stored in
171+
`/usr/share/bash-completion/completions` for
171172
system-wide commands, but can be stored in
172173
`~/.local/share/bash-completion/completions` for user-specific commands.
173174
Run the command:

0 commit comments

Comments
 (0)