Fixed CPU output on OpenBSD
This commit is contained in:
parent
c4119421c3
commit
17cd68ba6b
1 changed files with 1 additions and 0 deletions
1
neofetch
1
neofetch
|
@ -864,6 +864,7 @@ getcpu () {
|
|||
"OpenBSD"* | "FreeBSD"*)
|
||||
# Get cpu name
|
||||
cpu="$(sysctl -n hw.model)"
|
||||
cpu=${cpu/[0-9]\.*}
|
||||
cpu=${cpu/ @*}
|
||||
cpu=${cpu// }
|
||||
cpu=${cpu% }
|
||||
|
|
Loading…
Reference in a new issue