A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
# Avoid duplicate entries
HISTCONTROL="erasedups:ignoreboth"
# Don't record some commands
export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history:clear"
According to official GNU bash manual, having &:[ ]* in HISTIGNORE provides the functionality of ignoreboth. Thus, having both provides redundant results but makes the config harder to understand.
OMB currently sets in
lib/history.sh
:According to official GNU bash manual, having
&:[ ]*
inHISTIGNORE
provides the functionality ofignoreboth
. Thus, having both provides redundant results but makes the config harder to understand.