aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-08-29 19:28:04 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-08-29 19:28:04 +0300
commiteb58f0562108595e89cf8857582b34d955fcfd76 (patch)
treee7404134caa2aef4ac4bcd65184de8a444da5dad /internal/p10k.zsh
parentcb2ca16f514853bcb6009a861e6b50965f131a20 (diff)
fix load fg color
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index e8003655..07c05228 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -1594,11 +1594,11 @@ prompt_load() {
(( _p9k_num_cpus )) || return
if (( load > 0.7 * _p9k_num_cpus )); then
- local state=critical bg=red
+ local state=CRITICAL bg=red
elif (( load > 0.5 * _p9k_num_cpus )); then
- local state=warning bg=yellow
+ local state=WARNING bg=yellow
else
- local state=normal bg=green
+ local state=NORMAL bg=green
fi
_p9k_prompt_segment $0_$state $bg "$_p9k_color1" LOAD_ICON 0 '' $load