From 04146df203fb852b195f026c9e3fc22def9c8b9b Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 12 May 2021 20:32:38 +0200 Subject: [PATCH] Use bat for reading manpages --- .zshenv | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.zshenv b/.zshenv index 539e0b9..05b057b 100644 --- a/.zshenv +++ b/.zshenv @@ -75,18 +75,5 @@ alias wttr='curl https://wttr.in/Salzburg' alias valgrind='valgrind --track-origins=yes --leak-check=full' -# -# colorized man pages -# - -man() { - env \ - LESS_TERMCAP_mb=$(printf "\e[1;31m") \ - LESS_TERMCAP_md=$(printf "\e[1;31m") \ - LESS_TERMCAP_me=$(printf "\e[0m") \ - LESS_TERMCAP_se=$(printf "\e[0m") \ - LESS_TERMCAP_so=$(printf "\e[1;44;33m") \ - LESS_TERMCAP_ue=$(printf "\e[0m") \ - LESS_TERMCAP_us=$(printf "\e[1;32m") \ - man "$@" -} +# use bat for showing manpages (for colors) +export MANPAGER="sh -c 'col -bx | bat -l man -p'"