A prompt that shows the status (OK or error) of the last expression
prompt_status(expr, value, ok, visible)
Evaluated expression.
Its value.
Whether the evaluation succeeded.
Whether the result is visible.
prompt_status()
returns the prompt string.
Other example prompts:
new_prompt_powerline()
,
prompt_devtools()
,
prompt_fancy()
,
prompt_git()
,
prompt_mem()
,
prompt_runtime()