Skip to main content

Yet another powerline theme for xonsh with async prompt support.

Project description

Powerline3

Yet another powerline theme for xonsh with async prompt support.

Why another one?

  • It uses $PROMPT_FIELDS and no need to have a separate functions and renderer. Since the addition of $PROMPT_TOKENS_FORMATTER it is possible to use the existing set of functions to emulate powerline theme for xonsh prompts.
  • Async prompt mode works as well.

Installation

To install use pip:

xpip install xontrib-powerline3
# or: xpip install -U git+https://github.com/jnoortheen/xontrib-powerline3

Usage

xontrib load powerline3

# update the default set of colors for 
# the fields by updating the env variable
$PROMPT_FIELD_COLORS = {
    "cwd": ("WHITE", "CYAN"),
    "gitstatus": ("WHITE", "BLACK"),
    "ret_code": ("WHITE", "RED"),
    "full_env_name": ("white", "green"),
    "hostname": ("white", BLUE),
    "localtime": ("#DAF7A6", "black"),
}

# choose the powerline glyph used
$POWERLINE_MODE = "powerline" 
# Other choices are 
# round/down/up/flame/squares/ruiny/lego
# by default it chooses at radom

Examples

img.png

Credits

This package was created with xontrib cookiecutter template.

Similar Projects

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-powerline3-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

xontrib_powerline3-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file xontrib-powerline3-0.1.0.tar.gz.

File metadata

  • Download URL: xontrib-powerline3-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.9.11-3-MANJARO

File hashes

Hashes for xontrib-powerline3-0.1.0.tar.gz
Algorithm Hash digest
SHA256 279fbb4ca38307aa0bbe44c826cb9197c9640e4a5ad063ee034c8a171ced43d0
MD5 32f07cb43d67011f8243bb19d23f180b
BLAKE2b-256 a88c271ec1a33495761825e6e101efda06004ded18b4f24fc6dd28413db3601c

See more details on using hashes here.

File details

Details for the file xontrib_powerline3-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xontrib_powerline3-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8378193173c16cb20b6ecc0345ea62edc2ca5b13455ac1a2a0183ded300f5022
MD5 f156179f710f64d25d1bc280b1984fca
BLAKE2b-256 7b7e367c0203d5a9ab25d862631b39970b2edc424d2d73ebbdd1db7c4e7c886f

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