Home > computers > Colored Man Pages

Colored Man Pages

September 25th, 2008 Arkham Leave a comment Go to comments

To improve your productivity when you’re reading long pages of fine manuals (aka when you’re doing some healthy RTFM), it is a very nice trick to add some colour in the terminal, so you can jump quickly from section to section or find the name of that sneaky option with a glance…

Add to your ~/.bashrc:

export LESS_TERMCAP_mb=$'E[01;31m'
export LESS_TERMCAP_md=$'E[01;31m'
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;32m'

And

source ~/.bashrc

;)

Categories: computers Tags: ,
  1. No comments yet.
  1. No trackbacks yet.