Skip to content

Instantly share code, notes, and snippets.

@bhenderson
Created April 13, 2009 16:10
Show Gist options
  • Save bhenderson/94506 to your computer and use it in GitHub Desktop.
Save bhenderson/94506 to your computer and use it in GitHub Desktop.
~/.profile
...
##########
# http://linuxtidbits.wordpress.com/2009/03/23/less-colors-for-man-pages/
# Less Colors for Man Pages
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
#export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
#bold colors don't work well in OSX Terminal. These changes add red keywords, with blue 'option' words (not sure precise term)
export LESS_TERMCAP_md=$'\E[00;31;2;74m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment