Skip to content

Commit 83bfd01

Browse files
committed
Advise overwrite rather than append to existing bash completion files
There should be no reason to append to existing ones. Other similar completion file install recipes overwrite, too.
1 parent 37a21b1 commit 83bfd01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/cli/help.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pub(crate) static COMPLETIONS_HELP: &str = r"DISCUSSION:
173173
Run the command:
174174
175175
$ mkdir -p ~/.local/share/bash-completion/completions
176-
$ rustup completions bash >> ~/.local/share/bash-completion/completions/rustup
176+
$ rustup completions bash > ~/.local/share/bash-completion/completions/rustup
177177
178178
This installs the completion script. You may have to log out and
179179
log back in to your shell session for the changes to take effect.
@@ -268,7 +268,7 @@ pub(crate) static COMPLETIONS_HELP: &str = r"DISCUSSION:
268268
269269
BASH:
270270
271-
$ rustup completions bash cargo >> ~/.local/share/bash-completion/completions/cargo
271+
$ rustup completions bash cargo > ~/.local/share/bash-completion/completions/cargo
272272
273273
ZSH:
274274

0 commit comments

Comments
 (0)