diff --git a/config/config b/config/config index 48f0b147..7005bf39 100644 --- a/config/config +++ b/config/config @@ -114,6 +114,7 @@ gtk3="on" # Whether to show a long pretty output # or a shortened one +# NOTE: Long pretty output doesn't work on OpenBSD. # --birthday_shorthand on/off birthday_shorthand="off" diff --git a/fetch b/fetch index ebe2b8d6..136a85df 100755 --- a/fetch +++ b/fetch @@ -134,6 +134,7 @@ gtk3="on" # Whether to show a long pretty output # or a shortened one +# NOTE: Long pretty output doesn't work on OpenBSD. # --birthday_shorthand on/off birthday_shorthand="off" @@ -1205,18 +1206,18 @@ getbirthday () { case "$distro" in "OpenBSD") birthday="$(ls -alctT / | awk '/lost\+found/ {printf $6 " " $7 " " $9 " " $8}')" + birthday_shorthand="on" ;; "FreeBSD") birthday="$(ls -alctT /etc/hostid | awk '{printf $6 " " $7 " " $9 " " $8}')" + date_cmd="$(date -j -f "%b %d %Y" "$birthday" "+%a %d %b %Y %l:%M %p")" ;; *) birthday="Unknown" ;; esac - - date_cmd="$(date -j -f "%b %d %Y" "$birthday" "+%a %d %b %Y %l:%M %p")" ;; *)