Fix bat error

This commit is contained in:
JeremyStar™ 2023-12-16 23:51:02 +01:00
parent 54e2228857
commit e7cc466b46

View file

@ -229,7 +229,7 @@ if [ "${JSTMBASH_FANCIER_BAT}" == "true" ] && which bat &> /dev/null; then
fi fi
BAT_ARGUMENTS="--decorations=always --color=always --theme=Dracula --italic-text=always --wrap=never --nonprintable-notation=caret --paging=auto --style full ${PAGER}" BAT_ARGUMENTS="--decorations=always --color=always --theme=Dracula --italic-text=always --wrap=never --nonprintable-notation=caret --paging=auto --style full ${PAGER}"
# shellcheck disable=SC2139 # shellcheck disable=SC2139
alias "bat=$(which bat) ${BAT_ARGUMENTS}" alias "bat=env PAGER=moar $(which bat) ${BAT_ARGUMENTS}"
if [ "${JSTMBASH_ALIASES_USE_BAT}" == "true" ]; then if [ "${JSTMBASH_ALIASES_USE_BAT}" == "true" ]; then
# shellcheck disable=SC2139 # shellcheck disable=SC2139
alias "cat=$(which bat) ${BAT_ARGUMENTS}" alias "cat=$(which bat) ${BAT_ARGUMENTS}"