From babcd10b656600c17b83da7c70c25c8df9ee67d3 Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Thu, 29 Dec 2022 13:24:14 +0100 Subject: add: default pager and colors for 'less' --- .zprofile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to '.zprofile') 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 + -- cgit v1.2.3