From: Hendrik Jäger Date: Thu, 29 Dec 2022 12:24:14 +0000 (+0100) Subject: add: default pager and colors for 'less' X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=babcd10b656600c17b83da7c70c25c8df9ee67d3;p=user%2Fhenk%2Fvcsh%2Fzsh.git add: default pager and colors for 'less' --- diff --git a/.zprofile b/.zprofile index 9947b36..1a7f0da 100644 --- a/.zprofile +++ b/.zprofile @@ -10,6 +10,7 @@ export PATH export DEBEMAIL=deb@henk.geekmail.org #export BROWSER=iceweasel export EDITOR=vim +export PAGER=less # language should generally be english @@ -122,3 +123,27 @@ export NEWT_COLORS # lightmagenta # lightred + +# 'less' colors for man pages +# Colors +default=$(tput sgr0) +red=$(tput setaf 1) +green=$(tput setaf 2) +purple=$(tput setaf 5) +orange=$(tput setaf 9) + +# Begin blinking +export LESS_TERMCAP_mb=$red +# Begin bold +export LESS_TERMCAP_md=$orange +# End mode +export LESS_TERMCAP_me=$default +# End standout-mode +export LESS_TERMCAP_se=$default +# Begin standout-mode - info box +export LESS_TERMCAP_so=$purple +# End underline +export LESS_TERMCAP_ue=$default +# Begin underline +export LESS_TERMCAP_us=$green +