From bf3b1c1e2e83fa1794e70466f23da3980bcdbf67 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 7 May 2016 20:22:39 +1000 Subject: [PATCH] Add iOS detection --- neofetch | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/neofetch b/neofetch index f7a46e41..ea7efc63 100755 --- a/neofetch +++ b/neofetch @@ -447,12 +447,13 @@ shopt -s nocasematch extglob # Operating System {{{ -case "$(uname)" in - "Linux") os="Linux" ;; - "Darwin") os="Mac OS X" ;; - "OpenBSD") os="OpenBSD" ;; - *"BSD") os="BSD" ;; - "CYGWIN"*) os="Windows" ;; +case "$(uname -sm)" in + "Linux"*) os="Linux" ;; + "Darwin"*) os="Mac OS X" ;; + "OpenBSD"*) os="OpenBSD" ;; + *"BSD"*) os="BSD" ;; + "CYGWIN"*) os="Windows" ;; + *"iPhone"* | *"iPad"* | *"iPod"*) os="iOS" ;; *) printf "%s\n" "Unknown OS detected: $(uname)"; exit 1 ;; esac