diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2022-04-10 13:07:13 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2022-04-10 13:07:13 +0200 |
commit | 977db509ca181fccd81341a4a7e6cddbe5ee0d40 (patch) | |
tree | 63e1f9d5c15babb4aea0cf8a1236f6efbbfd38e7 /bash/dot-bashrc | |
parent | e57a99506f5f7f7adf2e42992e188120642e6479 (diff) |
bash: history control
Diffstat (limited to 'bash/dot-bashrc')
-rw-r--r-- | bash/dot-bashrc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/dot-bashrc b/bash/dot-bashrc index 70448a2..b56bebb 100644 --- a/bash/dot-bashrc +++ b/bash/dot-bashrc @@ -36,7 +36,8 @@ export COLOR_DEFAULT="\[\033[0;39m\]" export COLOR_WHITE=$COLOR_DEFAULT # History length and control -export HISTCONTROL=ignoreboth +shopt -s histappend +export HISTCONTROL=ignoreboth:erasedups export HISTSIZE=1000 export HISTTIMEFORMAT="[%F %T] " |