Ignore duplicate lines in history.