Added NetBSD support to getbirthday
This commit is contained in:
parent
c6b1ca65cf
commit
5b16820363
|
@ -114,7 +114,7 @@ gtk3="on"
|
|||
|
||||
# Whether to show a long pretty output
|
||||
# or a shortened one
|
||||
# NOTE: Long pretty output doesn't work on OpenBSD.
|
||||
# NOTE: Long pretty output doesn't work on OpenBSD or NetBSD.
|
||||
# --birthday_shorthand on/off
|
||||
birthday_shorthand="off"
|
||||
|
||||
|
|
7
fetch
7
fetch
|
@ -134,7 +134,7 @@ gtk3="on"
|
|||
|
||||
# Whether to show a long pretty output
|
||||
# or a shortened one
|
||||
# NOTE: Long pretty output doesn't work on OpenBSD.
|
||||
# NOTE: Long pretty output doesn't work on OpenBSD or NetBSD.
|
||||
# --birthday_shorthand on/off
|
||||
birthday_shorthand="off"
|
||||
|
||||
|
@ -1214,6 +1214,11 @@ getbirthday () {
|
|||
date_cmd="$(date -j -f "%b %d %Y" "$birthday" "+%a %d %b %Y %l:%M %p")"
|
||||
;;
|
||||
|
||||
"NetBSD")
|
||||
birthday="$(ls -alctT /etc/defaults/rc.conf | awk '{printf $6 " " $7 " " $9 " " $8}')"
|
||||
birthday_shorthand="on"
|
||||
;;
|
||||
|
||||
*)
|
||||
birthday="Unknown"
|
||||
;;
|
||||
|
|
Reference in New Issue