add history options
This commit is contained in:
parent
7ff56e393e
commit
9840b0cbd2
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue