From the following link change format for time command, I would like to get exactly the same format of MacOS Catalina time command present in bash into zsh of Debian 10 Buster.
So, I tested the solution given on this link :
$ export TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S'
and if do a : $ time sleep 63
I get :
real 63.00s
user 0.00s
sys 0.00s
whereas into bash of MacOS Catalina, I have with the same command :
real 1m3.030s
user 0m0.004s
sys 0m0.014s
I mean, on Debian, elapsed time doesn't display the minutes it is over 60 seconds. It always displays only the seconds. Moreover, if lower than 60s, we keep the Om0.004s, i.e Om in front of seconds
How to fix this to have the same format on Debian 10 zsh than MacOS bash ?