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.
pull/1209/head
Adam Wallis 2018-07-09 22:14:17 +00:00
parent 6eb35644e6
commit 1a81ca8b8d
1 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,13 @@ about-plugin 'enables powerline daemon'
command -v powerline-daemon &>/dev/null || return
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_SELECT=1
bashPowerlineInit=$(python -c \