From cc82e91f8d119072e6de7d57ebb1d7abe6fee8de Mon Sep 17 00:00:00 2001 From: Jocelyn Mallon Date: Fri, 18 Jul 2014 19:48:38 -0700 Subject: [PATCH] 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. --- bullet-train.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bullet-train.zsh-theme b/bullet-train.zsh-theme index 2514bfe..8f6907f 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -244,7 +244,7 @@ prompt_time() { return fi - if [[ $BULLETTRAIN_TIME_BG == '' && $BULLETTRAIN_TIME_BG == '' ]] then + if [[ $BULLETTRAIN_TIME_BG == '' && $BULLETTRAIN_TIME_FG == '' ]] then prompt_standout_segment %D{%H:%M:%S} else prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%H:%M:%S}