introduce man-coloured

This commit is contained in:
Casaper 2015-01-25 13:06:29 +01:00
parent a7125a40cf
commit 236209893a

View File

@ -0,0 +1,15 @@
# Authors: https://github.com/casaper
#
#### Gets less to display man pages with coloured keywords
#### for better readability.
man() {
env LESS_TERMCAP_mb=$'\e[01;3m' \
LESS_TERMCAP_md=$'\e[01;38;5;1m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[38;5;5m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[04;38;5;2m' \
man "$@"
}