Moritz Kraus
1 year
Stefan Xenopol
1 year
Andreas Vöst
1 year

Get a more colorful output for man pages

Updated . Posted . Visible to the public.

You can add this function to your .bashrc (or the configuration file of the shell your using instead):

man() {
    LESS_TERMCAP_mb=$'\e'"[1;31m" \
    LESS_TERMCAP_md=$'\e'"[1;31m" \
    LESS_TERMCAP_me=$'\e'"[0m" \
    LESS_TERMCAP_se=$'\e'"[0m" \
    LESS_TERMCAP_so=$'\e'"[1;44;33m" \
    LESS_TERMCAP_ue=$'\e'"[0m" \
    LESS_TERMCAP_us=$'\e'"[1;32m" \
    command man "$@"
}

Last edit
Matthias Bruhse
License
Source code in this card is licensed under the MIT License.