[wplug] colored manpages via less
Jonathan Billings
billings at negate.org
Tue Jul 3 07:30:07 EDT 2007
Eric Cooper wrote:
> export LESS_TERMCAP_mb=$'\e[01;31m'
> export LESS_TERMCAP_md=$'\e[01;31m'
> export LESS_TERMCAP_me=$'\e[0m'
> export LESS_TERMCAP_so=$'\e[01;44;33m'
> export LESS_TERMCAP_se=$'\e[0m'
> export LESS_TERMCAP_us=$'\e[01;32m'
> export LESS_TERMCAP_ue=$'\e[0m'
If you don't feel like mucking around with your rc files, or you aren't
using a bourne-based shell, you can test drive this with:
env LESS_TERMCAP_mb=$'\e[01;31m' LESS_TERMCAP_md=$'\e[01;31m' \
LESS_TERMCAP_me=$'\e[0m' LESS_TERMCAP_so=$'\e[01;44;33m' \
LESS_TERMCAP_se=$'\e[0m' LESS_TERMCAP_us=$'\e[01;32m' \
LESS_TERMCAP_ue=$'\e[0m' PAGER=less man perl
(Change the last word 'perl' to whatever man page you'd like to see.)
--
Jonathan Billings <billings at negate.org>
More information about the wplug
mailing list