1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-12 08:10:07 +00:00

remove trailing zeros from _p9k_human_readable_bytes

This commit is contained in:
romkatv 2020-01-26 15:20:58 +01:00
parent fa4d151f94
commit 5d460d7b99

View file

@ -218,7 +218,7 @@ function _p9k_human_readable_bytes() {
(( n < 100 )) && break
(( n /= 1024 ))
done
_p9k_ret=$n$suf
_p9k_ret=${${n%%0#}%.}$suf
}
if is-at-least 5.4; then