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).
-
xonsh.prompt.base.
default_prompt
()[source]
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.
-
xonsh.prompt.base.
multiline_prompt
(curr='')[source]
Returns the filler text for the prompt in multiline scenarios.