🔌 Simple powerline for Bash.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Niklas Rosenstein aa4aae86b5
update default config
1 week ago
.changelog (nr.powerline) bump version to 0.1.1 2 weeks ago
src/nr update default config 1 week ago
.gitignore rely on nr.ansiterm, add additional padding character in Git icons 2 months ago
LICENSE.txt initial commit 2 months ago
README.md add --fake-server option 2 weeks ago
package.yaml (nr.powerline) bump version to 0.1.1 2 weeks ago
screenshot.png add screenshot 2 months ago
setup.py (nr.powerline) bump version to 0.1.0 2 weeks ago

README.md

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+
  • Linux/macOS
  • jq (If not available, the environment variables cannot be sent from Bash to the powerline server)

Installation

$ pipx install nr.powerline
$ source <(nr-powerline --src bash)

On OSX, sourcing a Bash script from /dev/<fd> seems to have some issues, so you may need to write it to a temporary file instead.

if which nr-powerline >/dev/null; then
  function _activate_powerline() {
    local TMP=`mktemp`; trap "rm -f $TMP" RETURN
    nr-powerline --src bash>$TMP
    source $TMP
  }
  _activate_powerline
fi

Copyright © 2020 Niklas Rosenstein