*: Automatically use 'batcat' when 'bat' is missing

This commit is contained in:
Ethan P 2020-05-12 02:31:41 -07:00
parent 840d339c97
commit c9f3125002
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA

View File

@ -9,7 +9,7 @@ if [[ -z "$__LIB_CONSTANTS_INITIALIZED" ]]; then
__LIB_CONSTANTS_INITIALIZED=true __LIB_CONSTANTS_INITIALIZED=true
# Constants # Constants
EXECUTABLE_BAT="bat" EXECUTABLE_BAT="$(command -v bat 2>/dev/null || command -v batcat 2>/dev/null || echo "bat")"
EXECUTABLE_GIT="git" EXECUTABLE_GIT="git"
EXECUTABLE_DELTA="delta" EXECUTABLE_DELTA="delta"
PROGRAM="$(basename "$0" .sh)" PROGRAM="$(basename "$0" .sh)"