19 lines
602 B
Bash
19 lines
602 B
Bash
if which brew >/dev/null 2>&1; then
|
|
BREW_PREFIX=$(brew --prefix)
|
|
|
|
if [ -f "$BREW_PREFIX"/etc/bash_completion.d/brew ]; then
|
|
. "$BREW_PREFIX"/etc/bash_completion.d/brew
|
|
fi
|
|
|
|
if [ -f "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh ]; then
|
|
. "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh
|
|
fi
|
|
|
|
# For the git-clone based installation, see here for more info:
|
|
# https://github.com/Bash-it/bash-it/issues/1458
|
|
# https://docs.brew.sh/Shell-Completion
|
|
if [ -f "$BREW_PREFIX"/completions/bash/brew ]; then
|
|
. "$BREW_PREFIX"/completions/bash/brew
|
|
fi
|
|
fi
|