Merge pull request #1035 from bitjson/docs/homebrew-completions
Add bash completion guidance for macOS users
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user