Merge pull request #1035 from bitjson/docs/homebrew-completions

Add bash completion guidance for macOS users
This commit is contained in:
Brian Anderson
2017-04-07 18:35:55 -07:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -66,6 +66,9 @@ gist is as simple as using one of the following:
# Bash
$ rustup completions bash > /etc/bash_completion.d/rustup.bash-completion
# Bash (macOS/Homebrew)
$ rustup completions bash > $(brew --prefix)/etc/bash_completion.d/rustup.bash-completion
# Fish
$ rustup completions fish > ~/.config/fish/completions/rustup.fish

View File

@@ -162,6 +162,13 @@ r"DISCUSSION:
This installs the completion script. You may have to log out and
log back in to your shell session for the changes to take affect.
BASH (macOS/Homebrew):
Homebrew stores bash completion files within the Homebrew directory.
With the `bash-completion` brew formula installed, run the command:
`rustup completions bash > $(brew --prefix)/etc/bash_completion.d/rustup.bash-completion`
FISH:
Fish completion files are commonly stored in