diff --git a/bin/git-forgit b/bin/git-forgit index 85821bc..48e0a35 100755 --- a/bin/git-forgit +++ b/bin/git-forgit @@ -12,8 +12,11 @@ # This gives users the choice to set aliases inside of their git config instead # of their shell config if they prefer. -# Set shell for fzf preview commands -SHELL=/bin/bash +# Disable shellcheck for "which", because it suggests "command -v xxx" instead, +# which is not a working replacement. +# See https://github.com/koalaman/shellcheck/issues/1162 +# shellcheck disable=2230 +SHELL="$(which bash)" # Set shell for fzf preview commands # Get absolute forgit path FORGIT=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)/$(basename -- "${BASH_SOURCE[0]}")