From 9ab7accb63466459f43475b170c89a92adb9239d Mon Sep 17 00:00:00 2001 From: ver4a Date: Wed, 26 Mar 2025 13:56:30 +0100 Subject: [PATCH] Fix paging when LESS variable is set --- etc/profile.d/20-bat-manpager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/profile.d/20-bat-manpager.sh b/etc/profile.d/20-bat-manpager.sh index d4877af..85f505c 100644 --- a/etc/profile.d/20-bat-manpager.sh +++ b/etc/profile.d/20-bat-manpager.sh @@ -1,2 +1,2 @@ -export MANPAGER="sh -c 'col -bx | bat -l man --decorations=never --paging=always --pager \"less -RFK\"'" +export MANPAGER="sh -c 'col -bx | LESS="RK" bat -l man --decorations=never --paging=always'" export MANROFFOPT="-c"