Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/Siecje/xontrib-prompt-ret-code
- Owner: Siecje
- License: mit
- Created: 2016-05-19T00:13:22.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-12-12T20:11:40.000Z (about 1 year ago)
- Last Synced: 2024-09-18T01:41:11.196Z (4 months ago)
- Topics: xonsh, xontrib
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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