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 "