aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d/less
diff options
context:
space:
mode:
Diffstat (limited to 'shellrc.d/less')
-rw-r--r--shellrc.d/less10
1 files changed, 10 insertions, 0 deletions
diff --git a/shellrc.d/less b/shellrc.d/less
new file mode 100644
index 0000000..d2490a5
--- /dev/null
+++ b/shellrc.d/less
@@ -0,0 +1,10 @@
+# vim: ft=sh:
+export LESS=-R
+export LESS_TERMCAP_mb=$'\E[1;31m'
+export LESS_TERMCAP_md=$'\E[1;36m'
+export LESS_TERMCAP_me=$'\E[0m'
+export LESS_TERMCAP_se=$'\E[0m'
+export LESS_TERMCAP_so=$'\E[01;44;33m'
+export LESS_TERMCAP_ue=$'\E[0m'
+export LESS_TERMCAP_us=$'\E[1;32m'
+[ -x /usr/bin/src-hilite-lesspipe.sh ] && export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"