Skip to content

Instantly share code, notes, and snippets.

@krstp
Forked from egel/color_man_pages.sh
Created July 21, 2021 20:36
Show Gist options
  • Save krstp/bcd816e1f73f0000a206824d7bfd2ab1 to your computer and use it in GitHub Desktop.
Save krstp/bcd816e1f73f0000a206824d7bfd2ab1 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