mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 21:40:08 +00:00
remove trailing zeros from _p9k_human_readable_bytes
This commit is contained in:
parent
fa4d151f94
commit
5d460d7b99
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue