Shell-Completion: recommend .bash_profile

`.bashrc` is not the right location for shell completions.
This commit is contained in:
Mike McQuaid 2019-03-30 10:01:16 +00:00 committed by GitHub
parent 372a8d4532
commit 439283c3df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ You must configure your shell to enable the completion support. This is because
## Configuring Completions in `bash` ## Configuring Completions in `bash`
To make Homebrew's completions available in `bash`, you must source the definitions as part of your shell startup. Add the following to your `~/.bashrc` file: To make Homebrew's completions available in `bash`, you must source the definitions as part of your shell startup. Add the following to your `~/.bash_profile` file:
```sh ```sh
if type brew &>/dev/null; then if type brew &>/dev/null; then