Update Shell-Completion.md

Please see https://discourse.brew.sh/t/bash-completion-and-brew-instructions-for-setting-up-completions/3808 for details...
This commit is contained in:
Ian Max Andolina 2019-01-09 09:08:32 +08:00 committed by GitHub
parent ca2b853a8e
commit 030ddc9762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ To make Homebrew's completions available in `bash`, you must source the definiti
```sh ```sh
if type brew 2&>/dev/null; then if type brew 2&>/dev/null; then
source "$(brew --prefix)/etc/bash_completion" source "$(brew --prefix)/etc/bash_completion.d/*"
else else
echo "run: brew install git bash-completion" echo "run: brew install git bash-completion"
fi fi