# ignore repeated, space-started, and casual commands export HISTIGNORE="&:[ ]*:l[sl]:[bf]g:exit:cd .." # enable multiline historization as a single line shopt -s cmdhist # enable appending to histfile shopt -s histappend # ignore sequential duplicates export HISTCONTROL=ignoreboth # more! export HISTSIZE=10000 # file export HISTFILE=~/.history # vim: ft=bash