Skip to content

bash completions instructions should be correct/consistent #4375

Closed
@rickhg12hs

Description

@rickhg12hs

Problem you are trying to solve

Executing rustup completions --help outputs:

...
$ rustup completions bash >> ~/.local/share/bash-completion/completions/rustup
...

"The rustup book" shows:

...
# Bash
$ rustup completions bash > ~/.local/share/bash-completion/completions/rustup
...

Note the >> vs > difference. I'm no expert, but it seems > is correct.

Not that it makes a real difference (as far as I know), but other files I see in ~/.local/share/bash-completion/completions all have extension .bash, so perhaps ~/.local/share/bash-completion/completions/rustup.bash might more align the file name with others in the directory.

Solution you'd like

Have all documentation/help about bash completions be correct and consistent - preferably:

$ rustup completions bash > ~/.local/share/bash-completion/completions/rustup.bash

Notes

I see several other issues and PRs related to completions, so perhaps this issue could be resolved while addressing those.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions