$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 是一个 支持 $HISTCONTROL 的 Bash 集成开发工具 – 马上试用!