From 9e58e8e04f2c69c91d32790f694b9cf4a7cd681f Mon Sep 17 00:00:00 2001 From: Andrei Astafev Date: Fri, 28 Apr 2023 14:25:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=20=D0=BD=D0=B0=D0=BB=D0=B8?= =?UTF-8?q?=D1=87=D0=B8=D0=B8=20bat=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D0=B5=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=B2=20=D0=BA=D0=B0=D1=87=D0=B5=D1=81=D1=82=D0=B2=D0=B5=20?= =?UTF-8?q?=D0=BF=D0=B5=D0=B9=D0=B4=D0=B6=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zshenv | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshenv b/.zshenv index dd0e51c..6433afd 100644 --- a/.zshenv +++ b/.zshenv @@ -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