mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
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:
parent
140034605e
commit
acd2f589fd
1 changed files with 13 additions and 0 deletions
13
themes/emoji.zsh-theme
Normal file
13
themes/emoji.zsh-theme
Normal 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=" "
|
||||
Loading…
Add table
Add a link
Reference in a new issue