Skip to content

Commit

Permalink
Merge pull request #1035 from bitjson/docs/homebrew-completions
Browse files Browse the repository at this point in the history
Add bash completion guidance for macOS users
  • Loading branch information
brson authored Apr 8, 2017
2 parents 369150a + 25edf1e commit 9a99cf4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/rustup-cli/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a99cf4

Please sign in to comment.