1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

sets necessary environment variables to add colors to man pages

This commit is contained in:
Jeremy Seago 2016-09-12 22:59:30 -05:00
parent 071ddaf0ac
commit d0f1ede34b
2 changed files with 21 additions and 0 deletions

View 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`

View 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 "$@"