prompt_add_history
prompt_add_history(typestr, PROMPT_TYPE_COMMAND);
prompt_add_history(line, type);
prompt_add_history(s, pr->type);