Skip to content

Instantly share code, notes, and snippets.

Forked from audy/
Last active April 23, 2023 06:13
  • Star 50 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# zsh
EMOJI=(๐Ÿ’ฉ ๐Ÿฆ ๐Ÿš€ ๐Ÿž ๐ŸŽจ ๐Ÿ• ๐Ÿญ ๐Ÿ‘ฝ โ˜•๏ธ ๐Ÿ”ฌ ๐Ÿ’€ ๐Ÿท ๐Ÿผ ๐Ÿถ ๐Ÿธ ๐Ÿง ๐Ÿณ ๐Ÿ” ๐Ÿฃ ๐Ÿป ๐Ÿ”ฎ ๐Ÿ’ฐ ๐Ÿ’Ž ๐Ÿ’พ ๐Ÿ’œ ๐Ÿช ๐ŸŒž ๐ŸŒ ๐ŸŒ ๐Ÿ“ ๐Ÿ„ )
function random_emoji {
echo -n "$EMOJI[$RANDOM%$#EMOJI+1]"
PROMPT="$(random_emoji) "
# if you want to show git branch uncomment next lines
Copy link

Random emoji theme


You need additional fonts installed on your system. For me on ubuntu 14.04 the
next command worked:

sudo apt-get install ttf-ancient-fonts

Instruction can be found there, though I didn't need to modify my /etc/apt/sources.list


Just click on _'raw'_ for _random-emoji.zsh-theme_ file and place it in
your _$ZSH_CUSTOM/themes_ and modify you .zshrc according to these instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment