summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-04-02 03:17:25 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-04-02 03:17:25 +0300
commita06c53902d626af6a7b2eb7152082dba9ccf4c5f (patch)
tree17629112a15b32e84a5f5011d57dfd993263afe9 /powerlevel9k.zsh-theme
parenta9fcd466a3ef8fc6100de635e26ec8344d8d8706 (diff)
Whitespace.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme6
1 files changed, 3 insertions, 3 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 53f5023d..f279f994 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -336,9 +336,9 @@ build_test_stats() {
local tests_amount=$3+0.01
local headline=$4
- # Set float precision to 2 digits:
- typeset -F 2 ratio
- local ratio=$(( (tests_amount/code_amount) * 100 ))
+ # Set float precision to 2 digits:
+ typeset -F 2 ratio
+ local ratio=$(( (tests_amount/code_amount) * 100 ))
[[ ratio -ge 0.75 ]] && $1_prompt_segment cyan $DEFAULT_COLOR "$headline: $ratio%%"
[[ ratio -ge 0.5 && ratio -lt 0.75 ]] && $1_prompt_segment yellow $DEFAULT_COLOR "$headline: $ratio%%"