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
cd41ef4e
Commit
cd41ef4e
authored
Nov 06, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
General: Added support for iPhone 7 / 7 Plus
parent
1dbf6982
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
neofetch
neofetch
+6
-2
No files found.
neofetch
View file @
cd41ef4e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# set -x
# set -x
# vim: fdm=marker:noai:ts=4:sw=4:expandtab
# vim: fdm=marker:noai:ts=4:sw=4:expandtab
#
#
# Neofetch
info about your system
# Neofetch
: Simple system information script.
# https://github.com/dylanaraps/neofetch
# https://github.com/dylanaraps/neofetch
#
#
# Created by Dylan Araps
# Created by Dylan Araps
...
@@ -89,6 +89,8 @@ getmodel() {
...
@@ -89,6 +89,8 @@ getmodel() {
"iPhone8,1"
)
model
=
"iPhone 6s"
;;
"iPhone8,1"
)
model
=
"iPhone 6s"
;;
"iPhone8,2"
)
model
=
"iPhone 6s Plus"
;;
"iPhone8,2"
)
model
=
"iPhone 6s Plus"
;;
"iPhone8,4"
)
model
=
"iPhone SE"
;;
"iPhone8,4"
)
model
=
"iPhone SE"
;;
"iPhone9,1"
|
"iPhone9,3"
)
model
=
"iPhone 7"
;;
"iPhone9,2"
|
"iPhone9,4"
)
model
=
"iPhone 7 Plus"
;;
"iPod1,1"
)
model
=
"iPod touch"
;;
"iPod1,1"
)
model
=
"iPod touch"
;;
"ipod2,1"
)
model
=
"iPod touch 2G"
;;
"ipod2,1"
)
model
=
"iPod touch 2G"
;;
...
@@ -796,6 +798,7 @@ getcpu() {
...
@@ -796,6 +798,7 @@ getcpu() {
"iPhone6,"
[1-2]) cpu=
"Apple A7 (2) @ 1.3GHz"
;;
"iPhone6,"
[1-2]) cpu=
"Apple A7 (2) @ 1.3GHz"
;;
"iPhone7,"
[1-2]) cpu=
"Apple A8 (2) @ 1.4GHz"
;;
"iPhone7,"
[1-2]) cpu=
"Apple A8 (2) @ 1.4GHz"
;;
"iPhone8,"
[1-4]) cpu=
"Apple A9 (2) @ 1.85GHz"
;;
"iPhone8,"
[1-4]) cpu=
"Apple A9 (2) @ 1.85GHz"
;;
"iPhone9,"
[1-4]) cpu=
"Apple A10 Fusion (4) @ 2.34GHz"
;;
"iPod2,1"
) cpu=
"Samsung S5L8720 (1) @ 533MHz"
;;
"iPod2,1"
) cpu=
"Samsung S5L8720 (1) @ 533MHz"
;;
"iPod3,1"
) cpu=
"Samsung S5L8922 (1) @ 600MHz"
;;
"iPod3,1"
) cpu=
"Samsung S5L8922 (1) @ 600MHz"
;;
"iPod7,1"
) cpu=
"Apple A8 (2) @ 1.1GHz"
;;
"iPod7,1"
) cpu=
"Apple A8 (2) @ 1.1GHz"
;;
...
@@ -939,7 +942,8 @@ getcpu_usage() {
...
@@ -939,7 +942,8 @@ getcpu_usage() {
case
"
$os
"
in
case
"
$os
"
in
"Linux"
)
cores
=
"
$(
awk
-F
': '
'/siblings/ {printf $2; exit}'
/proc/cpuinfo
)
"
;;
"Linux"
)
cores
=
"
$(
awk
-F
': '
'/siblings/ {printf $2; exit}'
/proc/cpuinfo
)
"
;;
"Mac OS X"
|
"BSD"
)
cores
=
"
$(
sysctl
-n
hw.ncpu
)
"
;;
"Mac OS X"
|
"BSD"
)
cores
=
"
$(
sysctl
-n
hw.ncpu
)
"
;;
"Solaris"
)
cores
=
"
$(
kstat
-m
cpu_info |
grep
"chip_id"
|
wc
-l
|
tr
-d
' '
)
"
"Solaris"
)
cores
=
"
$(
kstat
-m
cpu_info |
grep
"chip_id"
|
wc
-l
|
tr
-d
' '
)
"
;;
"iPhone OS"
)
cores
=
"
${
cpu
/*\(
}
"
;
cores
=
"
${
cores
/\)*
}
"
;;
esac
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