added macOS support for model name
This commit is contained in:
parent
6b9abdb9d6
commit
8d2db93545
1 changed files with 5 additions and 0 deletions
5
neofetch
5
neofetch
|
@ -82,6 +82,11 @@ getmodel() {
|
|||
"ipod7,1") model="iPod touch 6G" ;;
|
||||
esac
|
||||
;;
|
||||
|
||||
"Mac OS X")
|
||||
model="$(sysctl hw.model)"
|
||||
model="${model//hw.model: /}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue