/xontrib-prompt-ret-code

Adds return code info to xonsh prompt. This has been merged into xonsh itself.

Primary LanguagePythonMIT LicenseMIT

Xontrib Prompt Ret Code

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

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