From: Felipe Contreras Date: Wed, 19 May 2021 12:21:18 GMT Subject: Re: [PATCH] help: colorize man pages Message-ID: <60a502be5eaa5_17b88208cc@natae.notmuch> In-Reply-To: <60a4f4312264f_86a82089b@natae.notmuch> Felipe Contreras wrote: > This is the equivalent of my latest patch: > > man () { > GROFF_NO_SGR=1 \ > LESS_TERMCAP_md=$'\e[1;31m' \ > LESS_TERMCAP_me=$'\e[m' \ > LESS_TERMCAP_us=$'\e[1;34m\e[4m' \ > LESS_TERMCAP_ue=$'\e[m' \ > LESS_TERMCAP_so=$'\e[1;35m\e[7m' \ > LESS_TERMCAP_se=$'\e[m' \ > command man "$@" > } Wait a second... MANPAGER="less -Dd+r -Du+b -Ds+m" GROFF_NO_SGR=1 command man "$@" Reading man pages pays off ;) -- Felipe Contreras