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 # Neofetch 1.5
### Info
**Disk Usage**<br \>
- Only display usage of local disks.

View File

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