Skip to content

Instantly share code, notes, and snippets.

@sambauers
Last active November 19, 2021 15:59
Show Gist options
  • Save sambauers/fa7260c97f8d3e690cdd to your computer and use it in GitHub Desktop.
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.
# 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