diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-01-24 20:41:17 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-01-24 20:41:17 +0300 |
commit | 08f73b27fd07cf841e02cc4182c0df042905c420 (patch) | |
tree | a02f47e7d01c14b966dece897728d968ac0f6f8f | |
parent | 186d1539b931c58b60a7fdfaadffb7cde5f57403 (diff) |
cherry pick disk_usage fix from https://github.com/romkatv/powerlevel10k/commit/0d33157b1232123bda62d86be6313f1012cc3bd7; see #435
-rw-r--r-- | internal/p10k.zsh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 3e605700..2fe7fb50 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -1033,16 +1033,16 @@ prompt_disk_usage() { local disk_usage=${${=${(f)"$(df -P . 2>/dev/null)"}[2]}[5]%%%} local state bg fg if (( disk_usage >= _POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL )); then - state=critical + state=CRITICAL bg=red fg=white elif (( disk_usage >= _POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL )); then - state=warning + state=WARNING bg=yellow fg=$_p9k_color1 else (( _POWERLEVEL9K_DISK_USAGE_ONLY_WARNING )) && return - state=normal + state=NORMAL bg=$_p9k_color1 fg=yellow fi |