Skip to content

Commit 602d0a2

Browse files
author
Hasan Ozgan
authored
Merge pull request #12 from SergeyNosov/feature
Bugfix: correct time cmd duration in right prompt
2 parents 3072990 + 861bff1 commit 602d0a2

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)