From bfdca24bbdc2a50ccc23339124357a224de53d60 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 16 Dec 2016 13:33:50 +1100 Subject: [PATCH] Birthday: Fix macOS birthday command --- neofetch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index b1b4998a..5fd9958a 100755 --- a/neofetch +++ b/neofetch @@ -1732,12 +1732,12 @@ get_birthday() { birthday="$(ls -alct --full-time / | awk '/lost\+found|private/ {printf $6 " " $7}')" ;; - "BSD" | "Mac OS X") - case "$kernel_name" in - "Darwin") - birthday_file="/var/log/install.log" - ;; + "Mac OS X") + birthday="$(ls -lUT /var/log/install.log | awk '{printf $9 " " $6 " " $7 " " $8}')" + ;; + "BSD") + case "$kernel_name" in "OpenBSD"* | "Bitrig"*) birthday_file="/" ;;