mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2026-11-25 18:03:07 +01:00
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:
1 parent
f2867c88f0
commit
cc82e91f8d
1 file changed
+1
-1
@@ -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}
|
||||||
|
|||||||
Reference in new issue
Block a user