Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
6154d08f
Unverified
Commit
6154d08f
authored
Apr 30, 2019
by
black
Committed by
GitHub
Apr 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1216 from jkhsjdhjs/master
cache_uname: fix darwin_name and osx_version for iOS 11.3 and later + add model,cpu,gpu for some idevices
parents
906782fc
ff53d8d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
37 deletions
+61
-37
neofetch
neofetch
+61
-37
No files found.
neofetch
View file @
6154d08f
...
@@ -1081,24 +1081,26 @@ get_model() {
...
@@ -1081,24 +1081,26 @@ get_model() {
"iPhone OS")
"iPhone OS")
case "$kernel_machine" in
case "$kernel_machine" in
"iPad1,1"): "iPad" ;;
"iPad1,1"): "iPad" ;;
"iPad2,"[1-4]): "iPad 2" ;;
"iPad2,"[1-4]): "iPad 2" ;;
"iPad3,"[1-3]): "iPad 3" ;;
"iPad3,"[1-3]): "iPad 3" ;;
"iPad3,"[4-6]): "iPad 4" ;;
"iPad3,"[4-6]): "iPad 4" ;;
"iPad4,"[1-3]): "iPad Air" ;;
"iPad6,1"[12]): "iPad 5" ;;
"iPad5,"[3-4]): "iPad Air 2" ;;
"iPad7,"[5-6]): "iPad 6" ;;
"iPad6,"[7-8]): "iPad Pro (12.9 Inch)" ;;
"iPad4,"[1-3]): "iPad Air" ;;
"iPad6,"[3-4]): "iPad Pro (9.7 Inch)" ;;
"iPad5,"[3-4]): "iPad Air 2" ;;
"iPad7,"[1-2]): "iPad Pro 2 (12.9 Inch)" ;;
"iPad11,"[3-4]): "iPad Air 3" ;;
"iPad7,"[3-4]): "iPad Pro (10.5 Inch)" ;;
"iPad6,"[7-8]): "iPad Pro (12.9 Inch)" ;;
"iPad2,"[5-7]): "iPad mini" ;;
"iPad6,"[3-4]): "iPad Pro (9.7 Inch)" ;;
"iPad4,"[4-6]): "iPad mini 2" ;;
"iPad7,"[1-2]): "iPad Pro 2 (12.9 Inch)" ;;
"iPad4,"[7-9]): "iPad mini 3" ;;
"iPad7,"[3-4]): "iPad Pro (10.5 Inch)" ;;
"iPad5,"[1-2]): "iPad mini 4" ;;
"iPad8,"[1-4]): "iPad Pro (11 Inch)" ;;
"iPad8,"[5-8]): "iPad Pro 3 (12.9 Inch)" ;;
"iPad6,11" | "iPad 6,12")
"iPad2,"[5-7]): "iPad mini" ;;
: "iPad 5"
"iPad4,"[4-6]): "iPad mini 2" ;;
;;
"iPad4,"[7-9]): "iPad mini 3" ;;
"iPad5,"[1-2]): "iPad mini 4" ;;
"iPad11,"[1-2]): "iPad mini 5" ;;
"iPhone1,1"): "iPhone" ;;
"iPhone1,1"): "iPhone" ;;
"iPhone1,2"): "iPhone 3G" ;;
"iPhone1,2"): "iPhone 3G" ;;
...
@@ -1113,12 +1115,14 @@ get_model() {
...
@@ -1113,12 +1115,14 @@ get_model() {
"iPhone8,1"): "iPhone 6s" ;;
"iPhone8,1"): "iPhone 6s" ;;
"iPhone8,2"): "iPhone 6s Plus" ;;
"iPhone8,2"): "iPhone 6s Plus" ;;
"iPhone8,4"): "iPhone SE" ;;
"iPhone8,4"): "iPhone SE" ;;
"iPhone9,"[13]): "iPhone 7" ;;
"iPhone9,1" | "iPhone9,3"): "iPhone 7" ;;
"iPhone9,"[24]): "iPhone 7 Plus" ;;
"iPhone9,2" | "iPhone9,4"): "iPhone 7 Plus" ;;
"iPhone10,"[14]): "iPhone 8" ;;
"iPhone10,1" | "iPhone10,4"): "iPhone 8" ;;
"iPhone10,"[25]): "iPhone 8 Plus" ;;
"iPhone10,2" | "iPhone10,5"): "iPhone 8 Plus" ;;
"iPhone10,"[36]): "iPhone X" ;;
"iPhone10,3" | "iPhone10,6"): "iPhone X" ;;
"iPhone11,2"): "iPhone XS" ;;
"iPhone11,"[46]): "iPhone XS Max" ;;
"iPhone11,8"): "iPhone XR" ;;
"iPod1,1"): "iPod touch" ;;
"iPod1,1"): "iPod touch" ;;
"ipod2,1"): "iPod touch 2G" ;;
"ipod2,1"): "iPod touch 2G" ;;
...
@@ -1873,8 +1877,14 @@ get_cpu() {
...
@@ -1873,8 +1877,14 @@ get_cpu() {
"iPhone5,"[1-4]): "Apple A6 (2) @ 1.3GHz" ;;
"iPhone5,"[1-4]): "Apple A6 (2) @ 1.3GHz" ;;
"iPhone6,"[1-2]): "Apple A7 (2) @ 1.3GHz" ;;
"iPhone6,"[1-2]): "Apple A7 (2) @ 1.3GHz" ;;
"iPhone7,"[1-2]): "Apple A8 (2) @ 1.4GHz" ;;
"iPhone7,"[1-2]): "Apple A8 (2) @ 1.4GHz" ;;
"iPhone8,"[1-4]): "Apple A9 (2) @ 1.85GHz" ;;
"iPhone8,"[1-4] | "iPad6,1"[12]): "Apple A9 (2) @ 1.85GHz" ;;
"iPhone9,"[1-4]): "Apple A10 Fusion (4) @ 2.34GHz" ;;
"iPhone9,"[1-4] | "iPad7,"[5-6]): "Apple A10 Fusion (4) @ 2.34GHz" ;;
"iPhone10,"[1-6]): "Apple A11 Bionic (6) @ 2.39GHz" ;;
"iPhone11,"[2468] | "iPad11,"[1-4])
: "Apple A12 Bionic (6) @ 2.49GHz"
;;
"iPod2,1"): "Samsung S5L8720 (1) @ 533MHz" ;;
"iPod2,1"): "Samsung S5L8720 (1) @ 533MHz" ;;
"iPod3,1"): "Samsung S5L8922 (1) @ 600MHz" ;;
"iPod3,1"): "Samsung S5L8922 (1) @ 600MHz" ;;
"iPod7,1"): "Apple A8 (2) @ 1.1GHz" ;;
"iPod7,1"): "Apple A8 (2) @ 1.1GHz" ;;
...
@@ -1888,6 +1898,8 @@ get_cpu() {
...
@@ -1888,6 +1898,8 @@ get_cpu() {
"iPad5,"[3-4]): "Apple A8X (3) @ 1.5GHz" ;;
"iPad5,"[3-4]): "Apple A8X (3) @ 1.5GHz" ;;
"iPad6,"[3-4]): "Apple A9X (2) @ 2.16GHz" ;;
"iPad6,"[3-4]): "Apple A9X (2) @ 2.16GHz" ;;
"iPad6,"[7-8]): "Apple A9X (2) @ 2.26GHz" ;;
"iPad6,"[7-8]): "Apple A9X (2) @ 2.26GHz" ;;
"iPad7,"[1-4]): "Apple A10X Fusion (6) @ 2.39GHz" ;;
"iPad8,"[1-8]): "Apple A12X Bionic (8) @ 2.49GHz" ;;
esac
esac
cpu="$_"
cpu="$_"
;;
;;
...
@@ -2181,13 +2193,13 @@ get_gpu() {
...
@@ -2181,13 +2193,13 @@ get_gpu() {
"iPhone OS")
"iPhone OS")
case "$kernel_machine" in
case "$kernel_machine" in
"iPhone1,"[1-2]): "PowerVR MBX Lite 3D" ;;
"iPhone1,"[1-2]):
"PowerVR MBX Lite 3D" ;;
"iPhone5,"[1-4]): "PowerVR SGX543MP3" ;;
"iPhone5,"[1-4]):
"PowerVR SGX543MP3" ;;
"iPhone
8,"[1-4]): "PowerVR GT7600
" ;;
"iPhone
11,"[2468]): "G11P
" ;;
"iPad3,"[1-3]): "PowerVR SGX534MP4" ;;
"iPad3,"[1-3]):
"PowerVR SGX534MP4" ;;
"iPad3,"[4-6]): "PowerVR SGX554MP4" ;;
"iPad3,"[4-6]):
"PowerVR SGX554MP4" ;;
"iPad5,"[3-4]): "PowerVR GXA6850" ;;
"iPad5,"[3-4]):
"PowerVR GXA6850" ;;
"iPad6,"[3-8]): "PowerVR 7XT" ;;
"iPad6,"[3-8]):
"PowerVR 7XT" ;;
"iPhone2,1" | "iPhone3,"[1-3] | "iPod3,1" | "iPod4,1" | "iPad1,1")
"iPhone2,1" | "iPhone3,"[1-3] | "iPod3,1" | "iPod4,1" | "iPad1,1")
: "PowerVR SGX535"
: "PowerVR SGX535"
...
@@ -2205,6 +2217,14 @@ get_gpu() {
...
@@ -2205,6 +2217,14 @@ get_gpu() {
: "PowerVR GX6450"
: "PowerVR GX6450"
;;
;;
"iPhone8,"[1-4] | "iPad6,1"[12])
: "PowerVR GT7600"
;;
"iPhone9,"[1-4] | "iPad7,"[5-6])
: "PowerVR GT7600 Plus"
;;
"iPod1,1" | "iPod2,1")
"iPod1,1" | "iPod2,1")
: "PowerVR MBX Lite"
: "PowerVR MBX Lite"
;;
;;
...
@@ -4199,11 +4219,15 @@ cache_uname() {
...
@@ -4199,11 +4219,15 @@ cache_uname() {
kernel_machine="${uname[2]}"
kernel_machine="${uname[2]}"
if [[ "$kernel_name" == "Darwin" ]]; then
if [[ "$kernel_name" == "Darwin" ]]; then
IFS=$'\n' read -d "" -ra sw_vers < <(awk -F'<|>' '/string/ {print $3}' \
IFS=$'\n' read -d "" -ra sw_vers < <(awk -F'<|>' '/
key|
string/ {print $3}' \
"/System/Library/CoreServices/SystemVersion.plist")
"/System/Library/CoreServices/SystemVersion.plist")
darwin_name="${sw_vers[2]}"
for ((i=0;i<${#sw_vers[@]};i+=2)) {
osx_version="${sw_vers[3]}"
case ${sw_vers[i]} in
osx_build="${sw_vers[0]}"
ProductName) darwin_name=${sw_vers[i+1]} ;;
ProductVersion) osx_version=${sw_vers[i+1]} ;;
ProductBuildVersion) osx_build=${sw_vers[i+1]} ;;
esac
}
fi
fi
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment