-
-
Save oshybystyi/2c30543cd48b2c9ecab0 to your computer and use it in GitHub Desktop.
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
# zsh | |
EMOJI=(๐ฉ ๐ฆ ๐ ๐ ๐จ ๐ ๐ญ ๐ฝ โ๏ธ ๐ฌ ๐ ๐ท ๐ผ ๐ถ ๐ธ ๐ง ๐ณ ๐ ๐ฃ ๐ป ๐ฎ ๐ฐ ๐ ๐พ ๐ ๐ช ๐ ๐ ๐ ๐ ๐ ) | |
function random_emoji { | |
echo -n "$EMOJI[$RANDOM%$#EMOJI+1]" | |
} | |
PROMPT="$(random_emoji) " | |
RPROMPT='%c' | |
# if you want to show git branch uncomment next lines | |
RPROMPT='%{$fg_bold[colour255]%}%c$(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX=" : " | |
ZSH_THEME_GIT_PROMPT_SUFFIX=" " | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Random emoji theme
Pre-installation
You need additional fonts installed on your system. For me on ubuntu 14.04 the
next command worked:
Instruction can be found there, though I didn't need to modify my /etc/apt/sources.list
Installation
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.