Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Siecje/xontrib-prompt-ret-code

Adds return code info to xonsh prompt. This has been merged into xonsh itself.
https://github.com/Siecje/xontrib-prompt-ret-code

xonsh xontrib

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Xontrib Prompt Ret Code

## ** This has been merged into xonsh itself. Please do not use this version! **

Modify the [xonsh](https://xon.sh) prompt to include the return code of the last failed command.

```shell
cody@cody-ubuntu16 ~ $ git status
fatal: Not a git repository (or any of the parent directories): .git
cody@cody-ubuntu16 ~ [128]$
```

![Demo](https://raw.githubusercontent.com/Siecje/xontrib-prompt-ret-code/master/demo.png)

## Install

```shell
pip install xontrib-prompt-ret-code
xontrib load prompt_ret_code
```

Add this line to your ```~/.xonshrc``` so it will automatically be loaded.

```shell
xontrib load prompt_ret_code
```

## License

MIT