From ce6cb7eeb7ea3452a1c6d7ee1a1c257c8a1d747e Mon Sep 17 00:00:00 2001 From: tomit4 Date: Wed, 27 Apr 2022 08:42:45 -0700 Subject: [PATCH] colorzied man pages --- bashrc.txt | 10 ++++++++++ zshrc.txt | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/bashrc.txt b/bashrc.txt index 0bfea3be..e6c42bb5 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -16,6 +16,16 @@ set -o vi # but keep ctrl l as the clear screen command bind -m vi-command 'Control-l: clear-screen' bind -m vi-insert 'Control-l: clear-screen' +# Colorizes man pages +export LESS_TERMCAP_mb=$'\e[1;32m' +export LESS_TERMCAP_md=$'\e[1;32m' +export LESS_TERMCAP_me=$'\e[0m' +export LESS_TERMCAP_se=$'\e[0m' +export LESS_TERMCAP_so=$'\e[01;33m' +export LESS_TERMCAP_ue=$'\e[0m' +export LESS_TERMCAP_us=$'\e[1;4;31m' + + # clears the history completely upon loading bash cat /dev/null > ~/.bash_history && history -c && hash -r diff --git a/zshrc.txt b/zshrc.txt index 22ca1739..3cc0e351 100644 --- a/zshrc.txt +++ b/zshrc.txt @@ -9,6 +9,15 @@ export BROWSER=links export TUIR_BROWSER=librewolf export EDITOR=nvim +# Colorizes man pages +export LESS_TERMCAP_mb=$'\e[1;32m' +export LESS_TERMCAP_md=$'\e[1;32m' +export LESS_TERMCAP_me=$'\e[0m' +export LESS_TERMCAP_se=$'\e[0m' +export LESS_TERMCAP_so=$'\e[01;33m' +export LESS_TERMCAP_ue=$'\e[0m' +export LESS_TERMCAP_us=$'\e[1;4;31m' + # Formats history command with dates/times export HISTTIMEFORMAT="%d/%m/%y %T "