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" ;;
|
"ipod7,1") model="iPod touch 6G" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"Mac OS X")
|
||||||
|
model="$(sysctl hw.model)"
|
||||||
|
model="${model//hw.model: /}"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue