Skip to content

Commit 2c8ee40

Browse files
committed
Fix linting errors that snuck in.
1 parent bdb5289 commit 2c8ee40

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

completion/available/git.completion.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ done
3939
if [[ "${_git_bash_completion_found}" == false ]]; then
4040
_log_warning "no completion files found - please try enabling the 'system' completion instead."
4141
fi
42+
# shellcheck disable=SC2154 # ignore unknown
4243
unset "${!_git_bash_completion@}"

plugins/available/autojump.plugin.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ about-plugin 'Autojump configuration, see https://github.com/wting/autojump for
44

55
# Only supports the Homebrew variant, Debian and Arch at the moment.
66
# Feel free to provide a PR to support other install locations
7+
# shellcheck disable=1090
78
if _bash_it_homebrew_check && [[ -s "${BASH_IT_HOMEBREW_PREFIX}/etc/profile.d/autojump.sh" ]]; then
89
source "${BASH_IT_HOMEBREW_PREFIX}/etc/profile.d/autojump.sh"
910
elif _command_exists dpkg && dpkg -s autojump &> /dev/null; then

plugins/available/base.plugin.bash

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ function usage() {
121121
}
122122

123123
# shellcheck disable=SC2144 # the glob matches only one file
124-
if [[ ! -e "${BASH_IT?}/plugins/enabled/todo.plugin.bash" &&
125-
! -e "${BASH_IT?}/plugins/enabled"/*"${BASH_IT_LOAD_PRIORITY_SEPARATOR-}todo.plugin.bash" ]]; then
124+
if [[ ! -e "${BASH_IT?}/plugins/enabled/todo.plugin.bash" && ! -e "${BASH_IT?}/plugins/enabled"/*"${BASH_IT_LOAD_PRIORITY_SEPARATOR-}todo.plugin.bash" ]]; then
126125
# if user has installed todo plugin, skip this...
127126
function t() {
128127
about 'one thing todo'

vendor/init.d/preexec.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Disable immediate `$PROMPT_COMMAND` modification
99
__bp_delay_install="delayed"
1010

11-
# shellcheck source-path=SCRIPTDIR/../github.com/rcaloras/bash-preexec
11+
# shellcheck source=SCRIPTDIR/../github.com/rcaloras/bash-preexec
1212
source "${BASH_IT?}/vendor/github.com/rcaloras/bash-preexec/bash-preexec.sh"
1313

1414
# Block damanaging user's `$HISTCONTROL`

0 commit comments

Comments
 (0)