mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Fix timer prompt zsh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user