From 8d03443759d67644ce676f9b37a10600e820c61e Mon Sep 17 00:00:00 2001 From: ver4a Date: Wed, 26 Mar 2025 13:58:13 +0100 Subject: [PATCH] Make bat manpager print from top If a manual is short enough to fit into first screen, the manual will not start at the top of the terminal because it's painted from bottom to top. This makes less print from top to bottom, making the behavior consistent between long and short manuals. --- 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 85f505c..757dd21 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 | LESS="RK" bat -l man --decorations=never --paging=always'" +export MANPAGER="sh -c 'col -bx | LESS="RKC" bat -l man --decorations=never --paging=always'" export MANROFFOPT="-c"