Commit Graph

7 Commits

Author SHA1 Message Date
ZyX f3d972849e Fall back to powerline-render when using powerline.sh 2014-08-02 21:31:01 +04:00
ZyX 95dcef8bf8 Some style fixes 2014-08-02 21:30:51 +04:00
ZyX 3b060562e2 Fix UnicodeDecodeError in Python version of powerline client 2014-08-02 19:46:04 +04:00
ZyX e37b13cc44 Remove compiled binary from repository 2014-08-02 18:56:44 +04:00
ZyX e613beb8df Add shell version of powerline-client
Note: this shell script is still faster then client/powerline.py. `time` reports 
      0.00, 0.01, 0.02÷0.03 for powerline, powerline.sh and powerline.py 
      respectively (run with `./client/powerline* tmux right`).

Note: does not work in busybox as env there does not support -0 argument. 
      Requires sed, id (for dash as $UID is not available there), env, printf 
      and socat. Is not currently handled by setup.py.
2014-08-02 18:53:25 +04:00
ZyX 7db428667c Get rid of modeline E518 error 2014-08-02 18:53:25 +04:00
Kim Silkebækken a122e73b9b Add files from @kovidgoyal's powerline-daemon repo
Minor changes have been applied:

- Removed copyright info and GPL 3 license since Powerline is MIT (needs
  confirmation from kovidgoyal before merge)
- The `powerline-client` script is renamed to `powerline`, and calls the
  daemon or `powerline-render` (the previous `powerline`) to render
  a statusline
- Minor coding style corrections to match the rest of the project
- Python 3 support is removed for now due to setuptools failing with
  binary scripts

Todo:

- Automatically attempt to launch powerline-daemon the first time
  powerline is run if the daemon isn't already running?
- pip install -e fails with binary files (it appears that pip recodes
  the powerline binary to ASCII, the compiled powerline script must be
  copied manually to ~/.local/bin after pip install -e has been run)
2014-08-02 18:45:18 +04:00