Created
March 28, 2018 23:26
-
-
Save aMoniker/3005be23e4006ff17d1c45dae98970a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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