Shell-Completion: fix redirection.

Fixes the issue noted in https://github.com/Homebrew/brew/pull/5625.
This commit is contained in:
Mike McQuaid 2019-02-21 16:25:47 +00:00 committed by GitHub
parent e1c12de1ba
commit ea379a84a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ You must configure your shell to enable the completion support. This is because
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 `~/.bashrc` file:
```sh ```sh
if type brew 2&>/dev/null; then if type brew &>/dev/null; then
for COMPLETION in $(brew --prefix)/etc/bash_completion.d/* for COMPLETION in $(brew --prefix)/etc/bash_completion.d/*
do do
[[ -f $COMPLETION ]] && source "$COMPLETION" [[ -f $COMPLETION ]] && source "$COMPLETION"