Skip to content

Instantly share code, notes, and snippets.

@durden
Created January 10, 2013 19:14
Show Gist options
  • Save durden/4504891 to your computer and use it in GitHub Desktop.
Save durden/4504891 to your computer and use it in GitHub Desktop.
Enable colors for viewing man pages in the terminal
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking-mode
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold-mode
export LESS_TERMCAP_me=$'\E[0m' # end (blinking/bold)-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # end underline
# Copied from: http://www.quora.com/Unix/What-are-some-hacks-when-reading-man-pages/answer/Igor-Pozgaj?srid=5axS&st=ns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment