Correct the free and used wording.

This commit is contained in:
2025-11-10 21:07:39 -07:00
parent 4b73dc336c
commit ce67c2a5b8

View File

@@ -10,11 +10,11 @@ function storage-display {
fi fi
if [[ "$style" == "%" || "$style" == "pct" || "$style" == "percent" ]]; then if [[ "$style" == "%" || "$style" == "pct" || "$style" == "percent" ]]; then
df -h "$location" | tail -n 1 | awk '{print $5}' df -h "$location" | tail -n 1 | awk '{print $5" Used"}'
elif [[ "$style" == "/" || "$style" == "use" || "$style" == "usage" ]]; then elif [[ "$style" == "/" || "$style" == "use" || "$style" == "usage" ]]; then
df -h "$location" | tail -n 1 | awk '{print $3"/"$2}' df -h "$location" | tail -n 1 | awk '{print $4"/"$2" Free"}'
else else
df -h "$location" | tail -n 1 | awk '{print $5" Free, "$3"/"$2" Used"}' df -h "$location" | tail -n 1 | awk '{print $5" Used, "$4"/"$2" Free"}'
fi fi
} }
alias storage='echo -n "Root: " && storage-display "/" && echo -n "Home: " && storage-display "/home"' alias storage='echo -n "Root: " && storage-display "/" && echo -n "Home: " && storage-display "/home"'