diff --git a/README.md b/README.md index 720c51b06b..3e6dfbd14d 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ $ rustup completions bash > ~/.local/share/bash_completion/completions/rustup $ rustup completions bash > $(brew --prefix)/etc/bash_completion.d/rustup.bash-completion # Fish +$ mkdir -p ~/.config/fish/completions $ rustup completions fish > ~/.config/fish/completions/rustup.fish # Zsh diff --git a/src/cli/help.rs b/src/cli/help.rs index 8893a8cb2e..5074368e34 100644 --- a/src/cli/help.rs +++ b/src/cli/help.rs @@ -169,6 +169,7 @@ r"DISCUSSION: `~/.local/share/bash_completion/completions` for user-specific commands. Run the command: + $ mkdir -p ~/.local/share/bash_completion/completions $ rustup completions bash >> ~/.local/share/bash_completion/completions/rustup This installs the completion script. You may have to log out and @@ -179,6 +180,7 @@ r"DISCUSSION: Homebrew stores bash completion files within the Homebrew directory. With the `bash-completion` brew formula installed, run the command: + $ mkdir -p $(brew --prefix)/etc/bash_completion.d $ rustup completions bash > $(brew --prefix)/etc/bash_completion.d/rustup.bash-completion FISH: @@ -186,6 +188,7 @@ r"DISCUSSION: Fish completion files are commonly stored in `$HOME/.config/fish/completions`. Run the command: + $ mkdir -p ~/.config/fish/completions $ rustup completions fish > ~/.config/fish/completions/rustup.fish This installs the completion script. You may have to log out and