Added Windows support to getbirthday
This commit is contained in:
parent
5b16820363
commit
c044bd788c
1 changed files with 5 additions and 0 deletions
5
fetch
5
fetch
|
@ -1225,6 +1225,11 @@ getbirthday () {
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"Windows")
|
||||||
|
birthday="$(ls -alct --full-time /cygdrive/c/Windows/explorer.exe | awk '{printf $8 " " $9}')"
|
||||||
|
date_cmd="$(date -d"$birthday" "+%a %d %b %Y %l:%M %p")"
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
birthday="Unknown"
|
birthday="Unknown"
|
||||||
;;
|
;;
|
||||||
|
|
Reference in a new issue