mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 11:50:38 +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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user