Skip to content

Instantly share code, notes, and snippets.

@67hz
Created August 5, 2020 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 67hz/752d049324b81d4cd2b215f12a729930 to your computer and use it in GitHub Desktop.
Save 67hz/752d049324b81d4cd2b215f12a729930 to your computer and use it in GitHub Desktop.
colorize man pages
man() {
LESS_TERMCAP_mb=$'\e[01;31m' \
LESS_TERMCAP_md=$'\e[01;33m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[01;44;19m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[01;32m' \
command man "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment