Created
August 5, 2020 02:27
-
-
Save 67hz/752d049324b81d4cd2b215f12a729930 to your computer and use it in GitHub Desktop.
colorize man pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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