From 8d2db93545dd314c4abe54d7730facd1393d07fa Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Sun, 14 Aug 2016 14:01:31 +1000 Subject: [PATCH 1/2] 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 } From 53d2cf6661332c29b58cf5b8ff47f7873fd361dc Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Sun, 14 Aug 2016 14:09:28 +1000 Subject: [PATCH 2/2] made PR two lines shorter :) --- neofetch | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 6577b9ec..879031c2 100755 --- a/neofetch +++ b/neofetch @@ -83,10 +83,7 @@ getmodel() { esac ;; - "Mac OS X") - model="$(sysctl hw.model)" - model="${model//hw.model: /}" - ;; + "Mac OS X") model="$(sysctl -n hw.model)" ;; esac }