Last active
November 19, 2021 15:59
-
-
Save sambauers/fa7260c97f8d3e690cdd to your computer and use it in GitHub Desktop.
Adds random emoji to your terminal prompt on Mac OS X, because emoji.
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
# Add this file to your home directory then include it in ~/.profile using `. ~/.profile-emoji-me.sh` | |
# These will show up in an emoji compatible terminal | |
ME_EMOJI=(๐ถ ๐ฑ ๐ญ ๐น ๐ฐ ๐ฆ ๐ป ๐ผ ๐จ ๐ฏ ๐ฆ ๐ฎ ๐ท ๐ธ ๐ต ๐); | |
RANDOM_ME_EMOJI=${ME_EMOJI[$((RANDOM%14))]}; | |
export PS1="\h:\W \u $RANDOM_ME_EMOJI "; | |
export PROMPT_COMMAND='update_terminal_cwd; echo -ne "\033]0;${RANDOM_ME_EMOJI##*/}\007"'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment