commit
244a6f23e5
@ -8,8 +8,8 @@
|
|||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|
||||||
function emoji-clock() {
|
function emoji-clock() {
|
||||||
hour=$(date '+%I')
|
hour=$(date -v '+15M' '+%I')
|
||||||
minutes=$(date '+%M')
|
minutes=$(date -v '+15M' '+%M')
|
||||||
case $hour in
|
case $hour in
|
||||||
01) clock="🕐"; [ $minutes -ge 30 ] && clock="🕜";;
|
01) clock="🕐"; [ $minutes -ge 30 ] && clock="🕜";;
|
||||||
02) clock="🕑"; [ $minutes -ge 30 ] && clock="🕝";;
|
02) clock="🕑"; [ $minutes -ge 30 ] && clock="🕝";;
|
||||||
|
Loading…
Reference in New Issue
Block a user