History options
This commit is contained in:
@ -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
|
||||
|
@ -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/
|
||||
|
Reference in New Issue
Block a user