Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dyuri/xontrib-powerline-binding
Powerline binding for xonsh
https://github.com/dyuri/xontrib-powerline-binding
powerline shell xonsh xontrib
Last synced: 19 days ago
JSON representation
Powerline binding for xonsh
- Host: GitHub
- URL: https://github.com/dyuri/xontrib-powerline-binding
- Owner: dyuri
- License: mit
- Created: 2020-08-22T18:32:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-26T10:53:34.000Z (over 2 years ago)
- Last Synced: 2024-11-09T08:39:10.568Z (about 1 month ago)
- Topics: powerline, shell, xonsh, xontrib
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-xontribs - powerline_binding - Uses powerline to render the xonsh prompt. (Prompts)
README
# Xontrib-powerline-binding
[Powerline](https://github.com/powerline/powerline) binding for [xonsh](https://xon.sh), so you can use your existing `powerline` prompt in `xonsh`.
![Example image](xonsh_powerline_binding_example.png)
## Install
Install using pip
```
pip install xontrib-powerline-binding
```Add to your `.xonshrc`:
```
xontrib load powerline_binding
```## Usage
Uses `powerline` to setup you `$PROMPT` and `$RIGHT_PROMPT`.
### Configuration
Add `xonsh` (and optionally `xonshtoolbar`) section to your `powerline` `config.json`:
```
{
"ext": {
"xonsh": {
"theme": "mytheme"
},
"xonshtoolbar": {
"theme": "mytheme"
}
}
}
```Then create `themes/xonsh/mytheme.json` (and `themes/xonshtoolbar/mytheme.json`) with your theme configuration (see [Powerline documentation](https://powerline.readthedocs.io/en/master/configuration/reference.html#themes)).
You can find my example powerline configuration in the `example-powerline-config` folder.## Extra segments
Currently includes the following xonsh specific powerline segments:
### `powerline_xonsh.exec_time`
Execution time of the last command.
Highlight group used: `exec_time`