touch up completion/available/brew.completion.bash
parent
7c73b22e75
commit
6f2376daa2
|
|
@ -1,18 +1,13 @@
|
||||||
if which brew >/dev/null 2>&1; then
|
if which brew >/dev/null 2>&1; then
|
||||||
BREW_PREFIX=$(brew --prefix)
|
BREW_PREFIX=$(brew --prefix)
|
||||||
|
|
||||||
if [ -f "$BREW_PREFIX"/etc/bash_completion.d/brew ]; then
|
if [ -f "$BREW_PREFIX"/etc/bash_completion.d/brew ]; then
|
||||||
. "$BREW_PREFIX"/etc/bash_completion.d/brew
|
. "$BREW_PREFIX"/etc/bash_completion.d/brew
|
||||||
fi
|
elif [ -f "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh ]; then
|
||||||
|
|
||||||
if [ -f "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh ]; then
|
|
||||||
. "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh
|
. "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh
|
||||||
fi
|
elif [ -f "$BREW_PREFIX"/completions/bash/brew ]; then
|
||||||
|
# For the git-clone based installation, see here for more info:
|
||||||
# For the git-clone based installation, see here for more info:
|
# https://github.com/Bash-it/bash-it/issues/1458
|
||||||
# https://github.com/Bash-it/bash-it/issues/1458
|
# https://docs.brew.sh/Shell-Completion
|
||||||
# https://docs.brew.sh/Shell-Completion
|
|
||||||
if [ -f "$BREW_PREFIX"/completions/bash/brew ]; then
|
|
||||||
. "$BREW_PREFIX"/completions/bash/brew
|
. "$BREW_PREFIX"/completions/bash/brew
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue