mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 19:49:54 +00:00
Add iOS detection
This commit is contained in:
11
neofetch
11
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" ;;
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user