Fix bug/typo in time segment

Fix to ensure that we check the state of both 'BULLETTRAIN_TIME_BG' and 'BULLETTRAIN_TIME_FG', instead of checking just the BG twice.
This commit is contained in:
Jocelyn Mallon
2014-07-18 19:48:38 -07:00
parent f2867c88f0
commit cc82e91f8d

View File

@@ -244,7 +244,7 @@ prompt_time() {
return return
fi fi
if [[ $BULLETTRAIN_TIME_BG == '' && $BULLETTRAIN_TIME_BG == '' ]] then if [[ $BULLETTRAIN_TIME_BG == '' && $BULLETTRAIN_TIME_FG == '' ]] then
prompt_standout_segment %D{%H:%M:%S} prompt_standout_segment %D{%H:%M:%S}
else else
prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%H:%M:%S} prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%H:%M:%S}