From 977db509ca181fccd81341a4a7e6cddbe5ee0d40 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sun, 10 Apr 2022 13:07:13 +0200 Subject: bash: history control --- bash/dot-bash_profile | 4 ---- bash/dot-bashrc | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'bash') diff --git a/bash/dot-bash_profile b/bash/dot-bash_profile index 7d5f3c9..e69de29 100644 --- a/bash/dot-bash_profile +++ b/bash/dot-bash_profile @@ -1,4 +0,0 @@ -# Load bashrc to mantain only one file -if [ -f "$HOME/.bashrc" ]; then - source "$HOME/.bashrc" -fi 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] " -- cgit v1.2.3