From 9a1e779d11952b81ef1f17497f949ef0ee500bef Mon Sep 17 00:00:00 2001 From: nojhan Date: Mon, 11 Mar 2013 22:26:49 +0100 Subject: [PATCH] bugfix #107: zsh-compatible if statement An if statement was used without the conditional operator: if [[ "" ]] This patch adds one: if [[ ! -z "" ]] Making the code zsh compatible. --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 311632b..2a9ac01 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1237,7 +1237,7 @@ _lp_set_prompt() LP_TIME=$(_lp_sr "$(_lp_time)") # in main prompt: no space - if [[ $(_lp_in_multiplexer) ]] ; then + if [[ ! -z "$(_lp_in_multiplexer)" ]] ; then LP_MARK_BRACKET_OPEN="${LP_COLOR_IN_MULTIPLEXER}${LP_MARK_BRACKET_OPEN}${NO_COL}" LP_MARK_BRACKET_CLOSE="${LP_COLOR_IN_MULTIPLEXER}${LP_MARK_BRACKET_CLOSE}${NO_COL}" fi