set moar as default $PAGER

This commit is contained in:
JeremyStar™ 2023-11-13 04:57:15 +01:00
parent 233e049662
commit a8fa568c23

View file

@ -166,6 +166,7 @@ fi
if [ "${JSTMBASH_ALIASES_USE_MOAR}" == "true" ] && which moar &> /dev/null; then if [ "${JSTMBASH_ALIASES_USE_MOAR}" == "true" ] && which moar &> /dev/null; then
alias "more=moar" alias "more=moar"
alias "less=moar" alias "less=moar"
export "PAGER=moar"
fi fi
# make programs fancier # make programs fancier
@ -245,6 +246,7 @@ if [ "${JSTMBASH_FANCIER_MOAR}" == "true" ] && which moar &> /dev/null; then
alias "more=moar ${MOAR_ARGUMENTS}" alias "more=moar ${MOAR_ARGUMENTS}"
# shellcheck disable=SC2139 # shellcheck disable=SC2139
alias "less=moar ${MOAR_ARGUMENTS}" alias "less=moar ${MOAR_ARGUMENTS}"
export "PAGER=moar ${MOAR_ARGUMENTS}"
fi fi
unset MOAR_ARGUMENTS unset MOAR_ARGUMENTS
fi fi