Skip to content

Commit 30f5e62

Browse files
committed
Rephrase system-wide vs user-specific bash completion file dir note
It's not that much about whether a command is system-wide or user-specific, but more about whether the completion is. In particular, the user-specific completions file dir is used to override system-wide completion, or to add completion for a command that does not have a system-wide completion installed. This is orthogonal to whether the command is installed system-wide or user-specific.
1 parent a32157e commit 30f5e62

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/cli/help.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,9 @@ pub(crate) static COMPLETIONS_HELP: &str = r"Discussion:
169169
170170
Bash:
171171
172-
Completion files are commonly stored in
173-
`/usr/share/bash-completion/completions` for
174-
system-wide commands, but can be stored in
175-
`~/.local/share/bash-completion/completions` for user-specific commands.
172+
System wide completion files are commonly stored in
173+
`/usr/share/bash-completion/completions`, and user-specific ones
174+
can be stored in `~/.local/share/bash-completion/completions`.
176175
Run the command:
177176
178177
$ mkdir -p ~/.local/share/bash-completion/completions

tests/suite/cli-ui/rustup/rustup_completions_cmd_help_flag_stdout.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ Discussion:
2626
2727
Bash:
2828
29-
Completion files are commonly stored in
30-
`/usr/share/bash-completion/completions` for
31-
system-wide commands, but can be stored in
32-
`~/.local/share/bash-completion/completions` for user-specific commands.
29+
System wide completion files are commonly stored in
30+
`/usr/share/bash-completion/completions`, and user-specific ones
31+
can be stored in `~/.local/share/bash-completion/completions`.
3332
Run the command:
3433
3534
$ mkdir -p ~/.local/share/bash-completion/completions

0 commit comments

Comments
 (0)