Use bat for reading manpages
This commit is contained in:
parent
087078a025
commit
04146df203
1 changed files with 2 additions and 15 deletions
17
.zshenv
17
.zshenv
|
@ -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 "$@"
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue