added history clearing in bashrc

This commit is contained in:
tomit4 2021-11-18 09:37:24 -08:00
parent 0d45edf465
commit 820f08e2c2

View file

@ -9,6 +9,9 @@ set -o vi
bind -m vi-command 'Control-l: clear-screen'
bind -m vi-insert 'Control-l: clear-screen'
# clears the history copletely upon loading bash
cat /dev/null > ~/.bash_history && history -c
[[ $- != *i* ]] && return
colors() {