Skip to content

Commit

Permalink
Advise overwrite rather than append to existing bash completion files
Browse files Browse the repository at this point in the history
There should be no reason to append to existing ones. Other similar
completion file install recipes overwrite, too.
  • Loading branch information
scop committed Nov 18, 2023
1 parent 3957913 commit 4b01c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ pub(crate) static COMPLETIONS_HELP: &str = r"Discussion:
Run the command:
$ mkdir -p ~/.local/share/bash-completion/completions
$ rustup completions bash >> ~/.local/share/bash-completion/completions/rustup
$ rustup completions bash > ~/.local/share/bash-completion/completions/rustup
This installs the completion script. You may have to log out and
log back in to your shell session for the changes to take effect.
Expand Down Expand Up @@ -270,7 +270,7 @@ pub(crate) static COMPLETIONS_HELP: &str = r"Discussion:
Bash:
$ rustup completions bash cargo >> ~/.local/share/bash-completion/completions/cargo
$ rustup completions bash cargo > ~/.local/share/bash-completion/completions/cargo
Zsh:
Expand Down

0 comments on commit 4b01c5e

Please sign in to comment.