Autosave history after each command.