mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-12 17:20:40 +01:00
*: Automatically use 'batcat' when 'bat' is missing
This commit is contained in:
parent
840d339c97
commit
c9f3125002
@ -9,7 +9,7 @@ if [[ -z "$__LIB_CONSTANTS_INITIALIZED" ]]; then
|
||||
__LIB_CONSTANTS_INITIALIZED=true
|
||||
|
||||
# Constants
|
||||
EXECUTABLE_BAT="bat"
|
||||
EXECUTABLE_BAT="$(command -v bat 2>/dev/null || command -v batcat 2>/dev/null || echo "bat")"
|
||||
EXECUTABLE_GIT="git"
|
||||
EXECUTABLE_DELTA="delta"
|
||||
PROGRAM="$(basename "$0" .sh)"
|
||||
|
Loading…
Reference in New Issue
Block a user