mirror of
https://github.com/captn3m0/dotfiles.git
synced 2024-09-27 19:22:50 +00:00
Fixes man pages, now colored 🌈
This commit is contained in:
parent
7c72d1c1de
commit
88f4900e78
@ -360,6 +360,22 @@ xset -b
|
||||
# }
|
||||
|
||||
|
||||
##
|
||||
# http://boredzo.org/blog/archives/2016-08-15/colorized-man-pages-understood-and-customized
|
||||
# colorized man pages
|
||||
man() {
|
||||
env \
|
||||
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
|
||||
LC_ALL=C \
|
||||
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") \
|
||||
MANWIDTH=$(expr $COLUMNS - 4) \
|
||||
man "$@"
|
||||
}
|
||||
|
||||
# Overrides the display provided by imagemagick
|
||||
function display() {
|
||||
|
Loading…
Reference in New Issue
Block a user