Package description here.
Project description
nr.powerline
Simple powerline implementation, only tested in Bash. It is recommended that you use a font from NerdFonts in order to have proper support for special characters (like the right triangle).
Requirements
- Bash
- Pipx
- Python 3.5+
Installation
$ pipx install nr.powerline
$ source <(nr-powerline --src bash)
Roadmap
- Pass previous status code into
nr-powerline
command. - Breadcrumb working directory
- Truecolor and xterm-256 color support
Configuration
Simply pass the --file
option when sourcing the bash code. It must point to
a Python script that makes use of the nr.powerline
API. Example:
from nr.powerline import PowerLine
powerline = PowerLine()
git = powerline.get_plugin('git')
powerline.set_pen('white', 'blue')
powerline.add_part(' {c.GIT_FOLDER} ' if git.project else ' {c.DIRECTORY} ')
powerline.add_part('{session.cwd} !{c.RIGHT_TRIANGLE}')
if git.project:
powerline.set_pen(None, 'yellow')
powerline.add_part(' {c.BRANCH} {git.branch} !{c.RIGHT_TRIANGLE}')
powerline.add_part(' ')
powerline.clear_pen()
Copyright © 2020 Niklas Rosenstein
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nr.powerline-0.0.7.tar.gz
(8.6 kB
view details)
File details
Details for the file nr.powerline-0.0.7.tar.gz
.
File metadata
- Download URL: nr.powerline-0.0.7.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d234ebfea8b731f27d38481e7cb9544cce354cf41262c6f94da2a761b79bcffa |
|
MD5 | 23cd24ffa150095cfaad9bf98d3b08ac |
|
BLAKE2b-256 | c52bcd6786efe571325b520342fc719552ac6fe8bb9c3da0fb5137e7a1c2bab9 |