При наличии bat использовать его в качестве пейджера

This commit is contained in:
Andrei Astafev 2023-04-28 14:25:46 +03:00
parent c0c1920574
commit 9e58e8e04f

View File

@ -53,6 +53,11 @@ if [[ -n ${DISPLAY+set} ]]; then
fi
# }}}
if command -v bat >/dev/null; then
export PAGER=bat
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
fi
# Uncrustify
export UNCRUSTIFY_CONFIG="${XDG_CONFIG_HOME}/uncrustify/uncrustify.cfg"
[ ! -r "${UNCRUSTIFY_CONFIG}" ] && unset UNCRUSTIFY_CONFIG