From 1de1472667814602e1ca1e0a2bf2b2e206d3b429 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Tue, 6 Aug 2019 14:42:40 -0600 Subject: [PATCH] added bash clock updated --- bash/time | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bash/time b/bash/time index bc3a304..53d5ef4 100644 --- a/bash/time +++ b/bash/time @@ -1,6 +1,15 @@ #!/bin/bash alias datereadable='date +"%A %B %d, %Y"' -function clock() { - watch -t -n1 "date +'%H : %M : %S' | figlet"; +function saydate() { + local todaysdate="$(date +'%A %B %d, %Y')" + local currenthour="$(date +'%H')" + local currentminute="$(date +'%M')" + [[ $currentminute -lt 10 ]] && currentminute="O $currentminute"; + + say "it's currently $currenthour $currentminute on $todaysdate"; +} + +function clock() { + watch -c -t -n1 "date +'%H : %M : %S' | figlet" | lolcat; }