Xontrib Prompt Ret Code
December 12, 2023 ยท View on GitHub
** This has been merged into xonsh itself. Please do not use this version! **
Modify the xonsh prompt to include the return code of the last failed command.
cody@cody-ubuntu16 ~ $ git status
fatal: Not a git repository (or any of the parent directories): .git
cody@cody-ubuntu16 ~ [128]$

Install
pip install xontrib-prompt-ret-code
xontrib load prompt_ret_code
Add this line to your ~/.xonshrc so it will automatically be loaded.
xontrib load prompt_ret_code
License
MIT