From f947031e38a8312a2de0725542a9db11cdb71339 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 7 May 2016 20:48:47 +1000 Subject: [PATCH] Add uptime and packages support for iOS --- neofetch | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index d0430b53..b8922e27 100755 --- a/neofetch +++ b/neofetch @@ -579,7 +579,7 @@ getuptime () { esac ;; - "Mac OS X" | *"BSD") + "Mac OS X" | "iPhone OS" | *"BSD") # Get boot time in seconds boot="$(sysctl -n kern.boottime)" boot="${boot/'{ sec = '}" @@ -656,7 +656,7 @@ getuptime () { getpackages () { case "$os" in - "Linux") + "Linux" | "iPhone OS") type -p pacman >/dev/null 2>&1 && \ packages="$(pacman -Qq --color never | wc -l)" @@ -947,6 +947,10 @@ getcpu () { cores=$(sysctl -n hw.ncpu) ;; + "iPhone OS") + cpu="" + ;; + *) case "$distro" in "OpenBSD"* | "FreeBSD"*)