Create random emoji theme emoji.zsh-theme

A different emoji for every prompt.
Inspired by http://www.hardscrabble.net/2013/random-emoji-in-prompt/
This commit is contained in:
Austin Richardson 2015-05-05 15:18:58 -04:00
commit acd2f589fd

13
themes/emoji.zsh-theme Normal file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env zsh
EMOJI=(💩 🐦 🚀 🐞 🎨 🍕 🐭 👽 ☕️ 🔬 💀 🐷 🐼 🐶 🐸 🐧 🐳 🌟 🍔 🍣 🍻 ⛵️ 🔮 💰 💎 💾 💜 🍪 🌞 🌍 🐌 🐓 🍄 )
function random_emoji {
echo -n "$EMOJI[$RANDOM%$#EMOJI+1]"
}
PROMPT="$(random_emoji) "
RPROMPT='%{$fg_bold[colour255]%}%c$(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX=" : "
ZSH_THEME_GIT_PROMPT_SUFFIX=" "