Skip to content

Instantly share code, notes, and snippets.

@egel
Created October 10, 2015 09:25
Show Gist options
  • Save egel/86559964e4740d300aa0 to your computer and use it in GitHub Desktop.
Save egel/86559964e4740d300aa0 to your computer and use it in GitHub Desktop.
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