summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2022-12-29 13:24:14 +0100
committerHendrik Jäger <gitcommit@henk.geekmail.org>2023-01-08 13:37:02 +0100
commitbabcd10b656600c17b83da7c70c25c8df9ee67d3 (patch)
treeb266aea7f7d6bffb43b329a6e1d41ecaa8cc911e
parent0386496bff759e5dbbe3aa765f886beeb34016de (diff)
add: default pager and colors for 'less'
-rw-r--r--.zprofile25
1 files changed, 25 insertions, 0 deletions
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
+