mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
rounding to emoji clock
This commit is contained in:
parent
6b443521ff
commit
a46a4ecb6f
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue