Added NetBSD support to getbirthday

This commit is contained in:
Dylan 2016-01-31 11:02:32 +11:00
parent c6b1ca65cf
commit 5b16820363
2 changed files with 7 additions and 2 deletions

View file

@ -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
View file

@ -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"
;;