Disk usage: Limit usage to local disks. Closes #128
This commit is contained in:
parent
3cd02ff72b
commit
076db2b68d
5
1.5.md
5
1.5.md
|
@ -1 +1,6 @@
|
|||
# Neofetch 1.5
|
||||
|
||||
### Info
|
||||
|
||||
**Disk Usage**<br \>
|
||||
- Only display usage of local disks.
|
||||
|
|
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
|
||||
;;
|
||||
|
|
Reference in New Issue