Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bash color man pages
# To work, link this file to your .bashrc file
# Add colors to man pages
export LESS_TERMCAP_mb=$'\E[01;31m' # enter blinking mode
export LESS_TERMCAP_md=$'\E[01;31m' # enter double-bright mode
export LESS_TERMCAP_me=$'\E[0m' # turn off all appearance modes (mb, md, so, us)
export LESS_TERMCAP_se=$'\E[0m' # leave standout mode
export LESS_TERMCAP_so=$'\E[01;44;33m' # enter standout mode – yellow
export LESS_TERMCAP_ue=$'\E[0m' # leave underline mode
export LESS_TERMCAP_us=$'\E[01;32m' # enter underline mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment