From 5b701e494ca8f1eaa547d68af44a789a19a53cba Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 31 May 2015 08:30:48 -0700 Subject: [PATCH] [split] Move emoji-clock plugin to oh-my-fish/plugin-emoji-clock https://github.com/oh-my-fish/plugin-emoji-clock --- plugins/emoji-clock/emoji-clock.fish | 89 ---------------------------- 1 file changed, 89 deletions(-) delete mode 100644 plugins/emoji-clock/emoji-clock.fish diff --git a/plugins/emoji-clock/emoji-clock.fish b/plugins/emoji-clock/emoji-clock.fish deleted file mode 100644 index 05f7bc3..0000000 --- a/plugins/emoji-clock/emoji-clock.fish +++ /dev/null @@ -1,89 +0,0 @@ -# ------------------------------------------------------------------------------ -# FILE: emoji-clock.plugin.zsh -# DESCRIPTION: The current time with half hour accuracy as an emoji symbol. -# Inspired by Andre Torrez' "Put A Burger In Your Shell" -# http://notes.torrez.org/2013/04/put-a-burger-in-your-shell.html -# AUTHOR: Alexis Hildebrandt (afh[at]surryhill.net) ported to fish by Erik Kallen -# VERSION: 1.0.0 -# ----------------------------------------------------------------------------- - -function emoji-clock - set hour (date '+%I') - set minutes (date '+%M') - switch $hour - case 01 - if test $minutes -ge 30 - set clock "🕜" - else - set clock "🕐" - end - case 02 - if test $minutes -ge 30 - set clock "🕝" - else - set clock "🕑" - end - case 03 - if test $minutes -ge 30 - set clock "🕞" - else - set clock "🕒" - end - case 04 - if test $minutes -ge 30 - set clock "🕟" - else - set clock "🕓" - end - case 05 - if test $minutes -ge 30 - set clock "🕠" - else - set clock "🕔" - end - case 06 - if test $minutes -ge 30 - set clock "🕡" - else - set clock "🕕" - end - case 07 - if test $minutes -ge 30 - set clock "🕢" - else - set clock "🕖" - end - case 08 - if test $minutes -ge 30 - set clock "🕣" - else - set clock "🕗" - end - case 09 - if test $minutes -ge 30 - set clock "🕤" - else - set clock "🕘" - end - case 10 - if test $minutes -ge 30 - set clock "🕥" - else - set clock "🕙" - end - case 11 - if test $minutes -ge 30 - set clock "🕦" - else - set clock "🕚" - end - case 12 - if test $minutes -ge 30 - set clock "🕧" - else - set clock "🕛" - end - case '*' set clock "⌛" - end - echo $clock -end