Skip to content

Instantly share code, notes, and snippets.

@aMoniker
Created March 28, 2018 23:26
Show Gist options
  • Save aMoniker/3005be23e4006ff17d1c45dae98970a1 to your computer and use it in GitHub Desktop.
Save aMoniker/3005be23e4006ff17d1c45dae98970a1 to your computer and use it in GitHub Desktop.
# If we're outside the bounds of the start/end hours, show the sleeping dragon
if [[ $HOUR -gt $ENDHOUR || $HOUR -lt $STARTHOUR ]]; then
PROMPT_TOP=$DRAGON_SLEEP
PROMPT_BOT=$BED
else
# otherwise, show the burned and remaining clocks
for i in `seq $STARTHOUR $ENDHOUR`; do
if [[ $i -lt $HOUR ]]; then
PROMPT_TOP="$PROMPT_TOP$FIRE"
else
PROMPT_TOP="$PROMPT_TOP$CLOCKFACES[$i + 1]"
fi
done
PROMPT_BOT=$DRAGON
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment