avoid repeat command history in sequence