[wplug] colored manpages via less

Eric Cooper ecc at cmu.edu
Mon Jul 2 22:06:18 EDT 2007


If you use "less" as the default pager for man, these settings in your
shell profile will display your manpages as angry fruit salad:

    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'

Taken from
http://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html

-- 
Eric Cooper             e c c @ c m u . e d u


More information about the wplug mailing list