diff options
author | Mikhaylov Anton <anion155@gmail.com> | 2016-11-21 14:41:54 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2017-01-21 06:05:32 +0300 |
commit | 7f3677d22a6d6010013e9f17284b70ac84126f3e (patch) | |
tree | 88f982a46d8763f7c81b038f0ba15b7cd23b49ba /powerlevel9k.zsh-theme | |
parent | ea74c45d4fd1a277cba5b694025bdfa29aa52645 (diff) |
Fix
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 53862b8c..bee48295 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -361,11 +361,8 @@ prompt_hdd_usage() { # local avail="$(echo $df | awk '{ print $4 }')" # local level="$(printf %.0f $(( avail * 100.0 / size )))" - # local level="${$(df -k . | sed -n '2p' | awk '{ print $5 }')%%\%}" - # level="$(( 100 - level ))" - # level="3" - - set_default level 10 + local level="${$(df -k . | sed -n '2p' | awk '{ print $5 }')%%\%}" + level="$(( 100 - level ))" if [ "$level" -gt "$POWERLEVEL9K_HDD_USAGE_WARNING_LEVEL" ]; then # Default behavior: Show message always |