[Fish] make man pages fancier

Add syntax highlight to man pages through bat
This commit is contained in:
Lucien Cartier-Tilet 2021-03-10 13:07:00 +01:00
parent fe5535b590
commit 1a97dc0884
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -163,6 +163,14 @@ get the sudo password. So, lets declare it.
set -gx SUDO_ASKPASS ~/.local/bin/askpass set -gx SUDO_ASKPASS ~/.local/bin/askpass
#+END_SRC #+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. Lets set the manpager to bat then:
#+BEGIN_SRC fish
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
#+END_SRC
** Development ** Development
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: Global_variables-Development-76b3ff13 :CUSTOM_ID: Global_variables-Development-76b3ff13