项目作者: dyuri

项目描述 :
Powerline binding for xonsh
高级语言: Python
项目地址: git://github.com/dyuri/xontrib-powerline-binding.git
创建时间: 2020-08-22T18:32:48Z
项目社区:https://github.com/dyuri/xontrib-powerline-binding

开源协议:MIT License

下载


Xontrib-powerline-binding

Powerline binding for xonsh, so you can use your existing powerline prompt in xonsh.

Example image

Install

Install using pip

  1. pip install xontrib-powerline-binding

Add to your .xonshrc:

  1. 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:

  1. {
  2. "ext": {
  3. "xonsh": {
  4. "theme": "mytheme"
  5. },
  6. "xonshtoolbar": {
  7. "theme": "mytheme"
  8. }
  9. }
  10. }

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.

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