Skip to content

Commit e764d6e

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 393e187 commit e764d6e

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
@@ -169,7 +169,8 @@ pub(crate) static COMPLETIONS_HELP: &str = r"Discussion:
169169
170170
Bash:
171171
172-
Completion files are commonly stored in `/etc/bash_completion.d/` for
172+
Completion files are commonly stored in
173+
`/usr/share/bash-completion/completions` for
173174
system-wide commands, but can be stored in
174175
`~/.local/share/bash-completion/completions` for user-specific commands.
175176
Run the command:

0 commit comments

Comments
 (0)