From 743332253a457b050c4cb60b36356ba48c2bdfbb Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Thu, 20 Feb 2025 19:24:56 -0800 Subject: [PATCH] More bat stuff --- init.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.zsh b/init.zsh index d327f88..641e2c5 100644 --- a/init.zsh +++ b/init.zsh @@ -170,8 +170,10 @@ if ! [[ -z "${bat_exec}" ]]; then alias ncat="${bat_exec} -pp --color=never" # Bat as man pager - export MANPAGER="zsh -c 'col -bx | ${bat_exec} -l man --paging=always --style=plain'" - export MANROFFOPT="-c" + if [[ "${bat_exec}" = */bat ]]; then + export MANPAGER="zsh -c 'col -bx | ${bat_exec} -l man --paging=always --style=plain'" + export MANROFFOPT="-c" + fi fi unset bat_exec