forked from extern/ohmyzsh
rounding to emoji clock
This commit is contained in:
parent
1b7a3ea99a
commit
99e74b0498
@ -8,8 +8,8 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
function emoji-clock() {
|
||||
hour=$(date '+%I')
|
||||
minutes=$(date '+%M')
|
||||
hour=$(date -v '+15M' '+%I')
|
||||
minutes=$(date -v '+15M' '+%M')
|
||||
case $hour in
|
||||
01) clock="🕐"; [ $minutes -ge 30 ] && clock="🕜";;
|
||||
02) clock="🕑"; [ $minutes -ge 30 ] && clock="🕝";;
|
||||
|
Loading…
Reference in New Issue
Block a user