Improved history in command mode.