From 200ba62653bbcb3b6d5da5b02e9c1b43304250f1 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 15 Aug 2022 12:10:34 +0100 Subject: [PATCH] Print MacOS version --- roles/home-cli/files/bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/home-cli/files/bashrc b/roles/home-cli/files/bashrc index e69c431..5674cba 100644 --- a/roles/home-cli/files/bashrc +++ b/roles/home-cli/files/bashrc @@ -262,6 +262,10 @@ usermotd () { then echo " $(. /etc/os-release; echo $NAME $VERSION)" fi + if [ "x$(uname -s)" == "xDarwin" ] + then + echo " $(sw_vers -productName) $(sw_vers -productVersion)" + fi uptime echo "LANG=$LANG" if [ -n "$TZ" ]