mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2026-11-27 02:43:06 +01:00
Update $BULLETTRAIN_TIME_12HR
change the "%X" in prompt_time() to "%T", because %X is based on local time so even if $BULLETTRAIN_TIME_12HR is false, the time would be in 12hr format because of the local. The %T forces it in 24hr format whatever your zone is.
This commit is contained in:
1 parent
4cddc84bee
commit
4e6b4e9b3f
1 file changed
+1
-1
@@ -426,7 +426,7 @@ prompt_time() {
|
|||||||
if [[ $BULLETTRAIN_TIME_12HR == true ]]; then
|
if [[ $BULLETTRAIN_TIME_12HR == true ]]; then
|
||||||
prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%r}
|
prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%r}
|
||||||
else
|
else
|
||||||
prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%X}
|
prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%T}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user