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.

Example image

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 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

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.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: xontrib-powerline-binding-0.3.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for xontrib-powerline-binding-0.3.1.tar.gz
Algorithm Hash digest
SHA256 392ddda92eec2b8d506df86473cfc246b53e407b7c904d534c0d25a0bd72bfa7
MD5 ac17a4b366dd768fa1be1f7f8f724f51
BLAKE2b-256 72d460858440bcf4c45a118a9ecfacf7fac7421afdb257a8031bea3bbf36d0f4

See more details on using hashes here.

File details

Details for the file xontrib_powerline_binding-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: xontrib_powerline_binding-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for xontrib_powerline_binding-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 873d6b2b36aaf763474d2db36e01a0a796fc93b07158935d7a19179bf86f053d
MD5 08390441d6b2cdc07e2c1ac61969efba
BLAKE2b-256 5d1498a926db441c1b6c309628b5fe056ae5973f39e21188bea8ff7f241bd111

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