Skip to content

Commit

Permalink
Add information to the help output about bash completions
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
  • Loading branch information
yodaldevoid committed Feb 16, 2019
1 parent b03f27c commit 49626f9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/rustup-cli/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,22 @@ r"DISCUSSION:
into a separate file and source it inside our profile. To save the
completions into our profile simply use
PS C:\> rustup completions powershell >> ${env:USERPROFILE}\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1";
PS C:\> rustup completions powershell >> ${env:USERPROFILE}\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
CARGO:
Rustup can also generate a completion script for `cargo`. The script output
by `rustup` will source the completion script distributed with your default
toolchain. Not all shells are currently supported. Here are examples for
the currently supported shells.
BASH:
$ rustup completions bash cargo >> ~/.local/share/bash_completion/completions/cargo
ZSH:
$ rustup completions zsh cargo > ~/.zfunc/_cargo";

pub static TOOLCHAIN_ARG_HELP: &'static str = "Toolchain name, such as 'stable', 'nightly', \
or '1.8.0'. For more information see `rustup \
Expand Down

0 comments on commit 49626f9

Please sign in to comment.