Please support VectorLinux!

Author Topic: How to: Colored man page in console....  (Read 2156 times)

hata_ph

  • Packager
  • Vectorian
  • ****
  • Posts: 3261
  • -- Just being myself --
How to: Colored man page in console....
« on: June 27, 2009, 07:34:01 am »
I found a guide to view colored man page in console....

http://linux.cuit.edu.cn/?p=257#more-257

just add below code to your ~/.bashrc

Quote
# colorful man page
export PAGER="/usr/bin/less -s"
export BROWSER="$PAGER"
export LESS_TERMCAP_mb=$'\E[01;34m'
export LESS_TERMCAP_md=$'\E[01;34m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;33m'
« Last Edit: June 27, 2009, 07:49:23 am by hata_ph »

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: How to: Colored man page in console....
« Reply #1 on: June 27, 2009, 07:46:49 am »
Nice, thankyou.
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee