From 6eb35644e6c6009c88454c7ca7cfbecdd856b037 Mon Sep 17 00:00:00 2001 From: Adam Wallis Date: Mon, 9 Jul 2018 21:53:27 +0000 Subject: [PATCH] Add powerline initialization plugin Initializes powerline per the official powerline documentation: https://powerline.readthedocs.io/en/master/usage/shell-prompts.html#bash-prompt --- plugins/available/powerline.plugin.bash | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugins/available/powerline.plugin.bash diff --git a/plugins/available/powerline.plugin.bash b/plugins/available/powerline.plugin.bash new file mode 100644 index 00000000..8e148f1e --- /dev/null +++ b/plugins/available/powerline.plugin.bash @@ -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