xontrib-prompt-ret-code

Adds return code info to xonsh prompt.


License
MIT
Install
pip install xontrib-prompt-ret-code==1.0.1

Documentation

Xontrib Prompt Ret Code

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]$ 

Demo

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