Skip to main content

Powerline binding for xonsh

Project description

Xontrib-powerline-binding

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

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). You can find example configuration in the example 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xontrib-powerline-binding-0.3.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file xontrib-powerline-binding-0.3.0.tar.gz.

File metadata

  • Download URL: xontrib-powerline-binding-0.3.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for xontrib-powerline-binding-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7282cf9dc60696dff677b4b31db572587073a841e35ea8da88dae54b2039b13c
MD5 dcc3d7aa78842e410f38ea33b387c0ea
BLAKE2b-256 aa604922e538ec6c01a4219092ec2089c13c654e9f79d73444a69fedcc52c4e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page