Add powerline initialization plugin

Initializes powerline per the official powerline documentation:
https://powerline.readthedocs.io/en/master/usage/shell-prompts.html#bash-prompt
pull/1209/head
Adam Wallis 2018-07-09 21:53:27 +00:00
parent f121bec2a1
commit 6eb35644e6
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
cite about-plugin
about-plugin 'enables powerline daemon'
command -v powerline-daemon &>/dev/null || return
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
bashPowerlineInit=$(python -c \
"import os; \
import powerline;\
print(os.path.join(os.path.dirname(\
powerline.__file__),\
'bindings', \
'bash', \
'powerline.sh'))")
[ -e $bashPowerlineInit ] || return
. $bashPowerlineInit