sets necessary environment variables to add colors to man pages
This commit is contained in:
parent
071ddaf0ac
commit
d0f1ede34b
2 changed files with 21 additions and 0 deletions
11
modules/colorized-man-pages/README.md
Normal file
11
modules/colorized-man-pages/README.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
Colorized Man Pages
|
||||||
|
===================
|
||||||
|
|
||||||
|
Provides environment variables necessary to add color to `man` pages.
|
||||||
|
|
||||||
|
This module will make use of `man`
|
||||||
|
|
||||||
|
Functions
|
||||||
|
---------
|
||||||
|
|
||||||
|
* `man` sets environment variables and then passes through to system `man` command. Syntax is `man zsh`
|
10
modules/colorized-man-pages/functions/man
Normal file
10
modules/colorized-man-pages/functions/man
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# vim: filetype=sh:
|
||||||
|
# Colorize man pages
|
||||||
|
LESS_TERMCAP_mb=$'\e[1;31m' \
|
||||||
|
LESS_TERMCAP_md=$'\e[1;31m' \
|
||||||
|
LESS_TERMCAP_me=$'\e[0m' \
|
||||||
|
LESS_TERMCAP_se=$'\e[0m' \
|
||||||
|
LESS_TERMCAP_so=$'\e[1;44;33m' \
|
||||||
|
LESS_TERMCAP_ue=$'\e[0m' \
|
||||||
|
LESS_TERMCAP_us=$'\e[1;32m' \
|
||||||
|
command man "$@"
|
Loading…
Reference in a new issue