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
|
# Neofetch 1.5
|
||||||
|
|
||||||
|
### Info
|
||||||
|
|
||||||
|
**Disk Usage**<br \>
|
||||||
|
- Only display usage of local disks.
|
||||||
|
|
6
neofetch
6
neofetch
|
@ -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
|
||||||
;;
|
;;
|
||||||
|
|
Reference in New Issue