mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
24 lines
510 B
Bash
24 lines
510 B
Bash
# ignore repeated, space-started, and casual commands
|
|
# export HISTIGNORE="&:[ ]*:l[sl]:[bf]g:exit:cd .."
|
|
# ^ disabled until bash/ext preexec is fixed
|
|
export HISTIGNORE=""
|
|
|
|
# enable multiline historization as a single line
|
|
shopt -s cmdhist
|
|
|
|
# enable appending to histfile on exit
|
|
shopt -s histappend
|
|
|
|
# ignore sequential duplicates
|
|
export HISTCONTROL=ignoredups
|
|
|
|
# more! (live)
|
|
export HISTSIZE=100000
|
|
|
|
# all! (persisted)
|
|
export HISTFILESIZE=1000000
|
|
|
|
# share with zsh
|
|
export HISTFILE=~/.history
|
|
|
|
# vim: ft=bash
|