Skip to content

Commit 861bff1

Browse files
author
Serhii Nosov
committed
Bugfix: correct time cmd duration in right prompt
1 parent 3072990 commit 861bff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fish_right_prompt.fish

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ function _is_multiplexed
6161
end
6262

6363
function _convertsecs
64-
printf "%02d:%02d:%02d\n" (math $argv[1] / 3600) (math (math $argv[1] \% 3600) / 60) (math $argv[1] \% 60)
64+
printf "%02d:%02d:%02d\n" (math -s0 $argv[1] / 3600) (math -s0 (math $argv[1] \% 3600) / 60) (math -s0 $argv[1] \% 60)
6565
end

0 commit comments

Comments
 (0)