mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
introduce man-coloured
This commit is contained in:
parent
a7125a40cf
commit
236209893a
1 changed files with 15 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue