Set HISTCONTROL to ignore dups and commands beginning with a space.