added bash clock updated
This commit is contained in:
parent
637573de89
commit
1de1472667
13
bash/time
13
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user