Skip to content

Offer/apply Shell autocompletion as part of rustup-init.sh ? #2723

Open
@vanillajonathan

Description

@vanillajonathan

When installing, we should detect the user's login shell if possible and then offer to add autocompletion sourcing to their init files. Perhaps this could be done generically in the $CARGO_HOME/env file, but if not, then we may need to do per-shell handling.


As an 'agile' story this might be:

  • As a users of rustup
  • When I freshly install Rust
  • I would like to have shell autocompletion so that when I type "rustup c" and press Tab then it expands that to "rustup check".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions