Don't redefine powerline theme functions

In the case where a powerline theme is enabled in bash-it,
it seems prudent to avoid touching any of these functions.
This commit is contained in:
Adam Wallis
2018-07-09 22:14:17 +00:00
parent 6eb35644e6
commit 1a81ca8b8d

View File

@@ -5,6 +5,13 @@ about-plugin 'enables powerline daemon'
command -v powerline-daemon &>/dev/null || return command -v powerline-daemon &>/dev/null || return
powerline-daemon -q powerline-daemon -q
#the following should not be executed if bashit powerline themes in use
case "$BASH_IT_THEME" in
*powerline*)
return
;;
esac
POWERLINE_BASH_CONTINUATION=1 POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1 POWERLINE_BASH_SELECT=1
bashPowerlineInit=$(python -c \ bashPowerlineInit=$(python -c \