completion: brew: Add shellcheck ignore directives
This commit is contained in:
@@ -16,14 +16,17 @@ _command_exists brew || return 0
|
|||||||
BREW_PREFIX=${BREW_PREFIX:-$(brew --prefix)}
|
BREW_PREFIX=${BREW_PREFIX:-$(brew --prefix)}
|
||||||
|
|
||||||
if [[ -r "$BREW_PREFIX"/etc/bash_completion.d/brew ]]; then
|
if [[ -r "$BREW_PREFIX"/etc/bash_completion.d/brew ]]; then
|
||||||
|
# shellcheck disable=1090
|
||||||
source "$BREW_PREFIX"/etc/bash_completion.d/brew
|
source "$BREW_PREFIX"/etc/bash_completion.d/brew
|
||||||
|
|
||||||
elif [[ -r "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh ]]; then
|
elif [[ -r "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh ]]; then
|
||||||
|
# shellcheck disable=1090
|
||||||
source "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh
|
source "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh
|
||||||
|
|
||||||
elif [[ -f "$BREW_PREFIX"/completions/bash/brew ]]; then
|
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
|
||||||
|
# shellcheck disable=1090
|
||||||
source "$BREW_PREFIX"/completions/bash/brew
|
source "$BREW_PREFIX"/completions/bash/brew
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user