Fix linting errors that snuck in.

pull/1982/head
cornfeedhobo 2021-11-01 22:27:44 -05:00
parent bdb5289660
commit 2c8ee40566
No known key found for this signature in database
GPG Key ID: 724357093F994B26
4 changed files with 4 additions and 3 deletions

View File

@ -39,4 +39,5 @@ done
if [[ "${_git_bash_completion_found}" == false ]]; then if [[ "${_git_bash_completion_found}" == false ]]; then
_log_warning "no completion files found - please try enabling the 'system' completion instead." _log_warning "no completion files found - please try enabling the 'system' completion instead."
fi fi
# shellcheck disable=SC2154 # ignore unknown
unset "${!_git_bash_completion@}" unset "${!_git_bash_completion@}"

View File

@ -4,6 +4,7 @@ about-plugin 'Autojump configuration, see https://github.com/wting/autojump for
# Only supports the Homebrew variant, Debian and Arch at the moment. # Only supports the Homebrew variant, Debian and Arch at the moment.
# Feel free to provide a PR to support other install locations # Feel free to provide a PR to support other install locations
# shellcheck disable=1090
if _bash_it_homebrew_check && [[ -s "${BASH_IT_HOMEBREW_PREFIX}/etc/profile.d/autojump.sh" ]]; then if _bash_it_homebrew_check && [[ -s "${BASH_IT_HOMEBREW_PREFIX}/etc/profile.d/autojump.sh" ]]; then
source "${BASH_IT_HOMEBREW_PREFIX}/etc/profile.d/autojump.sh" source "${BASH_IT_HOMEBREW_PREFIX}/etc/profile.d/autojump.sh"
elif _command_exists dpkg && dpkg -s autojump &> /dev/null; then elif _command_exists dpkg && dpkg -s autojump &> /dev/null; then

View File

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

View File

@ -8,7 +8,7 @@
# Disable immediate `$PROMPT_COMMAND` modification # Disable immediate `$PROMPT_COMMAND` modification
__bp_delay_install="delayed" __bp_delay_install="delayed"
# shellcheck source-path=SCRIPTDIR/../github.com/rcaloras/bash-preexec # shellcheck source=SCRIPTDIR/../github.com/rcaloras/bash-preexec
source "${BASH_IT?}/vendor/github.com/rcaloras/bash-preexec/bash-preexec.sh" source "${BASH_IT?}/vendor/github.com/rcaloras/bash-preexec/bash-preexec.sh"
# Block damanaging user's `$HISTCONTROL` # Block damanaging user's `$HISTCONTROL`