mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
rounding to emoji clock
This commit is contained in:
@@ -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="🕝";;
|
||||
|
||||
Reference in New Issue
Block a user