diff --git a/dot_config/bash/dot_bashrc b/dot_config/bash/dot_bashrc index 87dfb42..8bbf497 100644 --- a/dot_config/bash/dot_bashrc +++ b/dot_config/bash/dot_bashrc @@ -20,6 +20,10 @@ set +a # Bash XDG history export HISTFILE="$XDG_STATE_HOME"/bash/history +export HISTSIZE=10000 +export SAVEHIST=10000 +export HISTCONTROL=ignoredups:erasedups +shopt -s histappend # Helpful tool: https://bash-prompt-generator.org # On github: https://github.com/Scriptim/bash-prompt-generator diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index c2ad011..5b39916 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -32,6 +32,9 @@ bindkey "^[[3~" delete-char export HISTFILE="$XDG_STATE_HOME"/zsh/history export HISTSIZE=10000 export SAVEHIST=10000 +setopt HIST_EXPIRE_DUPS_FIRST +setopt HIST_IGNORE_DUPS +setopt HIST_IGNORE_ALL_DUPS setopt INC_APPEND_HISTORY_TIME # Helpful tool: https://zsh-prompt-generator.site/