From 927cdeccb64bdba1f3062a5a42eafd6c6d9df5d2 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Tue, 27 Feb 2018 01:38:51 +0000 Subject: [PATCH] profile: add LESS/man output colours --- .profile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.profile b/.profile index b4ed5f4..9483fad 100644 --- a/.profile +++ b/.profile @@ -15,14 +15,28 @@ export VIMINIT=":so $MYVIMRC" export EDITOR="vim" export VISUAL="vim" -export LESS="-RNI" -export PAGER="less $LESS" export MANPAGER="less -+N" export TERMINAL="termite" export BROWSER="chromium" export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" export QT_QPA_PLATFORMTHEME=gtk2 +export LESS="-RNI" +export PAGER="less $LESS" +export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) # green +export LESS_TERMCAP_md=$(tput bold; tput setaf 6) # cyan +export LESS_TERMCAP_me=$(tput sgr0) +export LESS_TERMCAP_so=$(tput bold; tput setaf 4) # blue +export LESS_TERMCAP_se=$(tput rmso; tput sgr0) +export LESS_TERMCAP_us=$(tput smul; tput bold; tput setaf 7) # white +export LESS_TERMCAP_ue=$(tput rmul; tput sgr0) +export LESS_TERMCAP_mr=$(tput rev) +export LESS_TERMCAP_mh=$(tput dim) +export LESS_TERMCAP_ZN=$(tput ssubm) +export LESS_TERMCAP_ZV=$(tput rsubm) +export LESS_TERMCAP_ZO=$(tput ssupm) +export LESS_TERMCAP_ZW=$(tput rsupm) + # Source secret keys and values into environment if [ -f "$CONFIG_DIR/secrets" ]; then set -o allexport