From ea379a84a6c5e38e3f6023f8a2fa8f24450f9f46 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 21 Feb 2019 16:25:47 +0000 Subject: [PATCH] Shell-Completion: fix redirection. Fixes the issue noted in https://github.com/Homebrew/brew/pull/5625. --- docs/Shell-Completion.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Shell-Completion.md b/docs/Shell-Completion.md index 394b70624d..fda2ac7727 100644 --- a/docs/Shell-Completion.md +++ b/docs/Shell-Completion.md @@ -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: ```sh -if type brew 2&>/dev/null; then +if type brew &>/dev/null; then for COMPLETION in $(brew --prefix)/etc/bash_completion.d/* do [[ -f $COMPLETION ]] && source "$COMPLETION"