From 89a71c1c7d82fc181e165673dbd92c682408c676 Mon Sep 17 00:00:00 2001 From: Chase Colman Date: Tue, 3 Jun 2014 14:53:42 -0400 Subject: [PATCH] Fix _lp_bzr_branch_color for zsh Fixes #301 without affecting bash functionality --- liquidprompt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index b7e7e3a..15afcfc 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1061,7 +1061,10 @@ _lp_bzr_branch_color() local output output="$(bzr version-info --check-clean --custom --template='{branch_nick} {revno} {clean}' 2> /dev/null)" [[ $? -ne 0 ]] && return - local tuple=($output) + $_LP_SHELL_zsh && setopt local_options && setopt sh_word_split + local tuple + tuple=($output) + $_LP_SHELL_zsh && unsetopt sh_word_split local branch=${tuple[_LP_FIRST_INDEX+0]} local revno=${tuple[_LP_FIRST_INDEX+1]} local clean=${tuple[_LP_FIRST_INDEX+2]}