repeat last command when hitting enter