Skip to content

Commit 4b01c5e

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 3957913 commit 4b01c5e

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
@@ -175,7 +175,7 @@ pub(crate) static COMPLETIONS_HELP: &str = r"Discussion:
175175
Run the command:
176176
177177
$ mkdir -p ~/.local/share/bash-completion/completions
178-
$ rustup completions bash >> ~/.local/share/bash-completion/completions/rustup
178+
$ rustup completions bash > ~/.local/share/bash-completion/completions/rustup
179179
180180
This installs the completion script. You may have to log out and
181181
log back in to your shell session for the changes to take effect.
@@ -270,7 +270,7 @@ pub(crate) static COMPLETIONS_HELP: &str = r"Discussion:
270270
271271
Bash:
272272
273-
$ rustup completions bash cargo >> ~/.local/share/bash-completion/completions/cargo
273+
$ rustup completions bash cargo > ~/.local/share/bash-completion/completions/cargo
274274
275275
Zsh:
276276

0 commit comments

Comments
 (0)