Base prompt formatter (xonsh.prompt.base)

Base prompt, provides FORMATTER_DICT and prompt related functions

xonsh.prompt.base.default_prompt()[source]

Creates a new instance of the default prompt.

xonsh.prompt.base.is_template_string(template, formatter_dict=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.

xonsh.prompt.base.partial_format_prompt(template='{env_name:{} }{BOLD_GREEN}{user}@{hostname}{BOLD_BLUE} {cwd}{branch_color}{curr_branch: {}}{NO_COLOR} {BOLD_BLUE}{prompt_end}{NO_COLOR} ', formatter_dict=None)[source]

Formats a xonsh prompt template string.