add history options

This commit is contained in:
Jakobus Schürz 2020-02-13 06:39:02 +01:00
parent 7ff56e393e
commit 9840b0cbd2

View file

@ -126,8 +126,10 @@ fi
# Disable Ctrl+s to freeze terminal
# Source https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps
stty -ixon
HISTCONTROL=erasedups
HISTIGNORE="ls:cd:exit"
export HISTCONTROL=erasedups,ignorespace,ignoredups
export HISTIGNORE="ls:l:cd:exit:pwd:date:"
export HISTTIMEFORMAT='%F %T '
export HIStSIZE=999999
echo "bashrc_add sourced" 2>&1 |tee -a ${MYSHELLCONFIG_LOGFILE} >&2
#echo "bashrc_add sourced" >&2