Base prompt formatter (xonsh.prompt.base)

Base prompt, provides PROMPT_FIELDS and prompt related functions

class xonsh.prompt.base.PromptFormatter[source]

Class that holds all the related prompt formatting methods, uses the PROMPT_FIELDS envvar (no color formatting).


Creates a new instance of the default prompt.

xonsh.prompt.base.is_template_string(template, PROMPT_FIELDS=None)[source]

Returns whether or not the string is a valid template.


Returns the filler text for the prompt in multiline scenarios.