Created
September 18, 2016 21:28
-
-
Save chrisbay/3eef7aca409adbd0722552565899f19c to your computer and use it in GitHub Desktop.
Bash commands for .bash_profile/.bash_rc to prepend prompt with random emoji
This file contains hidden or 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
# generate random emoji for prompt | |
EMOJIS=(๐ฑ ๐ฒ ๐ณ ๐ด ๐ต ๐ฟ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฝ ๐ถ ๐ ๐ง ๐ฎ ๐ฏ ๐ฉ ๐ช ๐ฐ ๐ซ ๐ฌ ๐ญ ๐ฎ ๐ท ๐ธ ๐น ๐บ) | |
IDX=$(jot -r 1 0 ${#EMOJIS[@]}) | |
EMOJI=${EMOJIS[IDX]} | |
export PS1="$EMOJI \[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\W\[\033[m\]\$ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment