Powerline binding for xonsh, so you can use your existing powerline
prompt in xonsh
.
Install using pip
pip install xontrib-powerline-binding
Add to your .xonshrc
:
xontrib load powerline_binding
Uses powerline
to setup you $PROMPT
and $RIGHT_PROMPT
.
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).
You can find my example powerline configuration in the example-powerline-config
folder.
Currently includes the following xonsh specific powerline segments:
Execution time of the last command.
Highlight group used: exec_time