mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 19:49:54 +00:00
Added experimental birthday function
This commit is contained in:
24
fetch
24
fetch
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user