introduce man-coloured
This commit is contained in:
parent
a7125a40cf
commit
236209893a
15
plugins/man-coloured/man-coloured.plugin.zsh
Normal file
15
plugins/man-coloured/man-coloured.plugin.zsh
Normal 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 "$@"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user