$HISTCONTROL
–
Control History List
$HISTCONTROL
is a colon-separated list of values to control how commands are saved on the history file.
Possible values
ignorespace
: lines which begin with a space are not savedignoredups
: lines which match the previous line are not savedignoreboth
: shorthand forignorespace
andignoredups
erasedups
: all previous lines matching the current line are removed from the history
Links
BashSupport Pro is a Bash IDE with support for $HISTCONTROL – try it now!