Use bat for reading manpages

This commit is contained in:
finga 2021-05-12 20:32:38 +02:00
parent 087078a025
commit 04146df203

17
.zshenv
View file

@ -75,18 +75,5 @@ alias wttr='curl https://wttr.in/Salzburg'
alias valgrind='valgrind --track-origins=yes --leak-check=full' alias valgrind='valgrind --track-origins=yes --leak-check=full'
# # use bat for showing manpages (for colors)
# colorized man pages export MANPAGER="sh -c 'col -bx | bat -l man -p'"
#
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 "$@"
}