Last active
November 18, 2015 17:05
-
-
Save gotascii/081a7a64434493628e38 to your computer and use it in GitHub Desktop.
Prompt rune casting: https://en.wikipedia.org/wiki/Elder_Futhark
This file contains 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
runes=( ᚠ ᚢ ᚦ ᚨ ᚱ ᚲ ᚷ ᚹ ᚺᚻ ᚾ ᛁ ᛃ ᛇ ᛈ ᛉ ᛊᛋ ᛏ ᛒ ᛖ ᛗ ᛚ ᛜᛝ ᛟ ᛞ) | |
cast=() | |
while [[ ${#cast} -le 2 ]];do | |
let "idx = $RANDOM % ${#runes} + 1" | |
cast+=(${runes[$idx]}) | |
done | |
prompt="$FG[154]${cast}%{$reset_color%} " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment