From 8d2db93545dd314c4abe54d7730facd1393d07fa Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Sun, 14 Aug 2016 14:01:31 +1000 Subject: [PATCH] added macOS support for model name --- neofetch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neofetch b/neofetch index 5d6eacd2..6577b9ec 100755 --- a/neofetch +++ b/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 }