Add iOS detection
This commit is contained in:
parent
2a423413ca
commit
bf3b1c1e2e
13
neofetch
13
neofetch
|
@ -447,12 +447,13 @@ shopt -s nocasematch extglob
|
||||||
|
|
||||||
# Operating System {{{
|
# Operating System {{{
|
||||||
|
|
||||||
case "$(uname)" in
|
case "$(uname -sm)" in
|
||||||
"Linux") os="Linux" ;;
|
"Linux"*) os="Linux" ;;
|
||||||
"Darwin") os="Mac OS X" ;;
|
"Darwin"*) os="Mac OS X" ;;
|
||||||
"OpenBSD") os="OpenBSD" ;;
|
"OpenBSD"*) os="OpenBSD" ;;
|
||||||
*"BSD") os="BSD" ;;
|
*"BSD"*) os="BSD" ;;
|
||||||
"CYGWIN"*) os="Windows" ;;
|
"CYGWIN"*) os="Windows" ;;
|
||||||
|
*"iPhone"* | *"iPad"* | *"iPod"*) os="iOS" ;;
|
||||||
*) printf "%s\n" "Unknown OS detected: $(uname)"; exit 1 ;;
|
*) printf "%s\n" "Unknown OS detected: $(uname)"; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Reference in New Issue