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.
This commit is contained in:
nojhan 2013-03-11 22:26:49 +01:00
parent d4d5a9f1d1
commit 9a1e779d11

View File

@ -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