Fix spacing in string output
parent
4686ce1f12
commit
634c1f8c18
|
|
@ -49,9 +49,9 @@ function _command_duration() {
|
||||||
|
|
||||||
_dynamic_clock_icon "${command_duration}"
|
_dynamic_clock_icon "${command_duration}"
|
||||||
if ((minutes > 0)); then
|
if ((minutes > 0)); then
|
||||||
printf "%s%s%dm %ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$minutes" "$seconds"
|
printf "%s %s%dm %ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$minutes" "$seconds"
|
||||||
elif ((seconds >= COMMAND_DURATION_MIN_SECONDS)); then
|
elif ((seconds >= COMMAND_DURATION_MIN_SECONDS)); then
|
||||||
printf "%s%s%d.%01ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$seconds" "$deciseconds"
|
printf "%s %s%d.%01ds" "${COMMAND_DURATION_ICON:-}" "${COMMAND_DURATION_COLOR:-}" "$seconds" "$deciseconds"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue