From 928ffa1cf2d1aa46174e15d9ec9020c37e0d55c4 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 7 May 2016 21:12:24 +1000 Subject: [PATCH] Add disk support and memory total to iOS --- neofetch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index b8922e27..5394cb7f 100755 --- a/neofetch +++ b/neofetch @@ -1240,6 +1240,10 @@ getmemory () { memused=$(((${memwired//.} + ${memactive//.} + ${memcompressed//.}) * 4 / 1024)) ;; + "iPhone OS") + memtotal=$(printf "%s\n" "$(sysctl -n hw.memsize)"/1024^2 | bc) + ;; + "OpenBSD" | "BSD") case "$distro" in "OpenBSD"*) @@ -1585,7 +1589,7 @@ getfont () { getdisk () { # df flags case "$os" in - "Linux" | "Windows") df_flags="-h -l --total" ;; + "Linux" | "iPhone Os" | "Windows") df_flags="-h -l --total" ;; "Mac OS X") df_flags="-H / -l" ;; *"BSD")