From 13e6e40636dd7de513ffd7eb068a2eede0cba667 Mon Sep 17 00:00:00 2001 From: Logan Gartner Date: Sun, 23 May 2021 14:41:18 -0600 Subject: [PATCH] Added colors for less --- .bashrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.bashrc b/.bashrc index 295fa44..9018f2b 100644 --- a/.bashrc +++ b/.bashrc @@ -27,6 +27,15 @@ export HISTSIZE=1000 export HISTFILESIZE=2000 export PROMPT_COMMAND="history -a; $PROMPT_COMMAND" +export LESS=-R +export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink +export LESS_TERMCAP_md=$'\E[1;36m' # begin bold +export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink +export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video +export LESS_TERMCAP_se=$'\E[0m' # reset reverse video +export LESS_TERMCAP_us=$'\E[1;32m' # begin underline +export LESS_TERMCAP_ue=$'\E[0m' # reset underline + complete -cf sudo complete -cf swallow complete -cf sw