From 1a97dc0884c4412a649393e8aa27cdf936cf1210 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 10 Mar 2021 13:07:00 +0100 Subject: [PATCH] [Fish] make man pages fancier Add syntax highlight to man pages through bat --- org/config/fish.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/org/config/fish.org b/org/config/fish.org index f95be47..5c70cbd 100644 --- a/org/config/fish.org +++ b/org/config/fish.org @@ -163,6 +163,14 @@ get the sudo password. So, let’s declare it. set -gx SUDO_ASKPASS ~/.local/bin/askpass #+END_SRC +In general, I prefer using ~bat~ to ~less~, although the former relies on the +latter, but ~bat~ provides nice wrapping around ~less~, including syntax +highlighting. Let’s set the manpager to bat then: +#+BEGIN_SRC fish + set -x MANPAGER "sh -c 'col -bx | bat -l man -p'" +#+END_SRC + + ** Development :PROPERTIES: :CUSTOM_ID: Global_variables-Development-76b3ff13