Created
January 10, 2013 19:14
-
-
Save durden/4504891 to your computer and use it in GitHub Desktop.
Enable colors for viewing man pages in the terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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