Added experimental birthday function

This commit is contained in:
Dylan 2016-01-30 22:10:28 +11:00
parent 5542cc8ce1
commit 825d5f68d2

24
fetch
View file

@ -53,6 +53,7 @@ printinfo () {
info "GPU" gpu
info "Memory" memory
# info "Birthday" birthday
# info "Font" gtkfont
# info "Disk" disk
# info "Resolution" resolution
@ -1174,6 +1175,29 @@ getdisk () {
# }}}
# Birthday {{{
getbirthday () {
case "$os" in
"Linux")
birthday="$(ls -alct --full-time / | awk '/lost\+found/ {printf $6 " " $7}')"
birthday=${birthday%:*}
;;
"Mac OS X")
birthday="$(ls -alctT /var/log/CDIS.custom | tail -1 | awk '{printf $6 " " $7 " " $9 " " $8}')"
birthday=${birthday%:*}
;;
*)
birthday="Unknown"
;;
esac
}
# }}}
# Terminal colors {{{
getcols () {