HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

rustup completions — Generate shell completions for `rustup` and `cargo`. More information: <https://rust-lang.github.io/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shellcommandrustup completionsclirustupcompletionsforgenerate

Problem

How to use the rustup completions command: Generate shell completions for rustup and cargo. More information: <https://rust-lang.github.io/rustup/>.

Solution

rustup completions — Generate shell completions for rustup and cargo. More information: <https://rust-lang.github.io/rustup/>.

Print the completion script to stdout:
rustup completions {{bash|elvish|fish|powershell|zsh}} {{rustup|cargo}}

Code Snippets

Print the completion script to `stdout`

rustup completions {{bash|elvish|fish|powershell|zsh}} {{rustup|cargo}}

Context

tldr-pages: common/rustup completions

Revisions (0)

No revisions yet.