aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-26 17:20:58 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-26 17:20:58 +0300
commit5d460d7b9983a14cd37358cd27905789002b5d8c (patch)
treeb606441fef686cc498d896bccd6a98a30292082b /internal/p10k.zsh
parentfa4d151f94dd8194326b0150cbba1318836917ef (diff)
remove trailing zeros from _p9k_human_readable_bytes
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh2
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