Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shimtom/powerline-exitstatus
A Powerline segment for showing exit status.
https://github.com/shimtom/powerline-exitstatus
Last synced: 15 days ago
JSON representation
A Powerline segment for showing exit status.
- Host: GitHub
- URL: https://github.com/shimtom/powerline-exitstatus
- Owner: shimtom
- License: mit
- Created: 2018-05-13T18:40:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-07T16:45:29.000Z (over 3 years ago)
- Last Synced: 2024-09-26T08:54:48.717Z (about 2 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Powerline Exitstatus
A [Powerline][1] segment for showing exit status.
It will show last exit status.
![screenshot](./screenshot.png)
## Glossary
* `✔`: exit success
* `✕`: exit fail## Installation
```bash
pip install powerline-exitstatus
```The Exitstatus segment a couple of custom highlight groups. You'll need to define those groups in your colorscheme, for example in `.config/powerline/colorschemes/default.json`:
```json
{
"groups": {
"exit_status_success": { "fg": "mediumgreen", "bg": "gray2", "attrs": [] },
"exit_status_fail": { "fg": "brightestred", "bg": "gray2", "attrs": [] }
}
}
```Then you can activate the Exitstatus segment by adding it to your segment configuration, for example in `.config/powerline/themes/shell/default.json`:
```json
{
"function": "powerline_exitstatus.exit_status",
"priority": 10
}
```If you want to show exit status only failed, you can enable by setting `only_failed` argument to `true`.
```json
{
"function": "powerline_exitstatus.exit_status",
"args": {
"only_failed": true
}
}
```## License
Licensed under [the MIT License][3].[1]: http://powerline.readthedocs.io/en/master/index.html
[2]: https://github.com/shimtom/powerline-exitstatus/blob/master/screenshot.png
[3]: https://github.com/shimtom/powerline-exitstatus/blob/master/LICENSE