Disk usage: Limit usage to local disks. Closes #128

This commit is contained in:
Dylan 2016-03-10 08:57:21 +11:00
parent 3cd02ff72b
commit 076db2b68d
2 changed files with 8 additions and 3 deletions

5
1.5.md
View file

@ -1 +1,6 @@
# Neofetch 1.5
### Info
**Disk Usage**<br \>
- Only display usage of local disks.

View file

@ -1358,12 +1358,12 @@ getfont () {
getdisk () {
# df flags
case "$os" in
"Linux" | "Windows") df_flags="-h --total" ;;
"Mac OS X") df_flags="-H /" ;;
"Linux" | "Windows") df_flags="-h -l --total" ;;
"Mac OS X") df_flags="-H / -l" ;;
*"BSD")
case "$os" in
"FreeBSD") df_flags="-h -c" ;;
"FreeBSD") df_flags="-h -c -l" ;;
*) disk="Unknown"; return ;;
esac
;;