Add history support in command mode