fix (completion): suppress 1091 in brew (#2130)
parent
5c306f026d
commit
12b8e03a51
|
|
@ -14,17 +14,17 @@ fi
|
||||||
_bash_it_homebrew_check || return 0
|
_bash_it_homebrew_check || return 0
|
||||||
|
|
||||||
if [[ -r "$BASH_IT_HOMEBREW_PREFIX/etc/bash_completion.d/brew" ]]; then
|
if [[ -r "$BASH_IT_HOMEBREW_PREFIX/etc/bash_completion.d/brew" ]]; then
|
||||||
# shellcheck disable=1090
|
# shellcheck disable=1090,1091
|
||||||
source "$BASH_IT_HOMEBREW_PREFIX/etc/bash_completion.d/brew"
|
source "$BASH_IT_HOMEBREW_PREFIX/etc/bash_completion.d/brew"
|
||||||
|
|
||||||
elif [[ -r "$BASH_IT_HOMEBREW_PREFIX/Library/Contributions/brew_bash_completion.sh" ]]; then
|
elif [[ -r "$BASH_IT_HOMEBREW_PREFIX/Library/Contributions/brew_bash_completion.sh" ]]; then
|
||||||
# shellcheck disable=1090
|
# shellcheck disable=1090,1091
|
||||||
source "$BASH_IT_HOMEBREW_PREFIX/Library/Contributions/brew_bash_completion.sh"
|
source "$BASH_IT_HOMEBREW_PREFIX/Library/Contributions/brew_bash_completion.sh"
|
||||||
|
|
||||||
elif [[ -f "$BASH_IT_HOMEBREW_PREFIX/completions/bash/brew" ]]; then
|
elif [[ -f "$BASH_IT_HOMEBREW_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
|
||||||
# shellcheck disable=1090
|
# shellcheck disable=1090,1091
|
||||||
source "$BASH_IT_HOMEBREW_PREFIX/completions/bash/brew"
|
source "$BASH_IT_HOMEBREW_PREFIX/completions/bash/brew"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue