mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
remove trailing zeros from _p9k_human_readable_bytes
This commit is contained in:
parent
fa4d151f94
commit
5d460d7b99
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user