diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-01-26 17:20:58 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-01-26 17:20:58 +0300 |
commit | 5d460d7b9983a14cd37358cd27905789002b5d8c (patch) | |
tree | b606441fef686cc498d896bccd6a98a30292082b /internal/p10k.zsh | |
parent | fa4d151f94dd8194326b0150cbba1318836917ef (diff) |
remove trailing zeros from _p9k_human_readable_bytes
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 9d913278..bbfbf60d 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -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 |