diff --git a/jaraco/xonsh.xsh b/jaraco/xonsh.xsh index 0a15740..795fbdb 100644 --- a/jaraco/xonsh.xsh +++ b/jaraco/xonsh.xsh @@ -49,7 +49,7 @@ for localf in pathlib.Path('~/.local/xonsh.d').expanduser().glob('*'): import keyring -$PROMPT = '{env_name:{} }{cwd_base}{branch_color}{curr_branch: {}}{RESET} {BOLD_BLUE}{prompt_end}{RESET} ' +$PROMPT = '{env_name:{} }{cwd_base}{branch_color}{curr_branch: {}}{RESET} {RED}{last_return_code_if_nonzero:[{BOLD_INTENSE_RED}{}{RED}] }{RESET}{BOLD_BLUE}{prompt_end}{RESET} ' def remove_mercurial_metadata(): git rm .hg* diff --git a/newsfragments/+0f40c7f9.feature.rst b/newsfragments/+0f40c7f9.feature.rst new file mode 100644 index 0000000..a51fd1b --- /dev/null +++ b/newsfragments/+0f40c7f9.feature.rst @@ -0,0 +1 @@ +Include in the prompt the last return code if nonzero. \ No newline at end of file