Disk usage: Limit usage to local disks. Closes #128
This commit is contained in:
parent
3cd02ff72b
commit
076db2b68d
2 changed files with 8 additions and 3 deletions
6
neofetch
6
neofetch
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue