1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-17 10:10:07 +00:00
This commit is contained in:
Mikhaylov Anton 2016-11-21 16:41:54 +05:00 committed by Ben Hilburn
parent ea74c45d4f
commit 7f3677d22a

View file

@ -361,11 +361,8 @@ prompt_hdd_usage() {
# local avail="$(echo $df | awk '{ print $4 }')" # local avail="$(echo $df | awk '{ print $4 }')"
# local level="$(printf %.0f $(( avail * 100.0 / size )))" # local level="$(printf %.0f $(( avail * 100.0 / size )))"
# local level="${$(df -k . | sed -n '2p' | awk '{ print $5 }')%%\%}" local level="${$(df -k . | sed -n '2p' | awk '{ print $5 }')%%\%}"
# level="$(( 100 - level ))" level="$(( 100 - level ))"
# level="3"
set_default level 10
if [ "$level" -gt "$POWERLEVEL9K_HDD_USAGE_WARNING_LEVEL" ]; then if [ "$level" -gt "$POWERLEVEL9K_HDD_USAGE_WARNING_LEVEL" ]; then
# Default behavior: Show message always # Default behavior: Show message always