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 26, 2023
1 parent 30f5e62 commit ece7d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ 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 @@ -128,7 +128,7 @@ 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 ece7d09

Please sign in to comment.