mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
Added OpenBSD support to getbirthday
This commit is contained in:
13
fetch
13
fetch
@@ -1202,7 +1202,20 @@ getbirthday () {
|
||||
;;
|
||||
|
||||
*"BSD")
|
||||
case "$distro" in
|
||||
"OpenBSD")
|
||||
birthday="$(ls -alctT / | awk '/lost\+found/ {printf $6 " " $7 " " $9 " " $8}')"
|
||||
;;
|
||||
|
||||
"FreeBSD")
|
||||
birthday="$(ls -alctT /etc/hostid | awk '{printf $6 " " $7 " " $9 " " $8}')"
|
||||
;;
|
||||
|
||||
*)
|
||||
birthday="Unknown"
|
||||
;;
|
||||
esac
|
||||
|
||||
date_cmd="$(date -j -f "%b %d %Y" "$birthday" "+%a %d %b %Y %l:%M %p")"
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user