Skip to content

Instantly share code, notes, and snippets.

@Jamelle-Boose
Last active April 10, 2020 03:23
Show Gist options
  • Save Jamelle-Boose/11f362846f654931bf0c33589d6404e1 to your computer and use it in GitHub Desktop.
Save Jamelle-Boose/11f362846f654931bf0c33589d6404e1 to your computer and use it in GitHub Desktop.
Colorize Man Pages #bash #bashrc
export LESS_TERMCAP_mb=$(printf '\e[01;31m')
export LESS_TERMCAP_md=$(printf '\e[01;35m')
export LESS_TERMCAP_me=$(printf '\e[0m')
export LESS_TERMCAP_se=$(printf '\e[0m')
export LESS_TERMCAP_so=$(printf '\e[01;33m')
export LESS_TERMCAP_ue=$(printf '\e[0m')
export LESS_TERMCAP_us=$(printf '\e[04;36m')
@Jamelle-Boose
Copy link
Author

Code to add colorized man pages

Add the following code to .bashrc file, then source or reload .bashrc (source or . .bashrc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment