set bash to remove all previous lines matching current line from history before that line is saved