Fix timer prompt zsh

This commit is contained in:
2026-03-26 17:03:42 +01:00
parent b0fb300dbb
commit 348383d0fc
+1 -1
View File
@@ -14,7 +14,7 @@ timer_precmd() {
fi
local d_s=$((EPOCHREALTIME - timer))
local s=$((int(rint(d_s % 60))))
local m=$((int(rint( (d_s / 60) % 60 ))))
local m=$((int((d_s / 60) % 60)))
local h=$((int(rint(d_s / 3600))))
if ((h > 0)); then EXEC_TIME=${h}h${m}m