Skip to content

Instantly share code, notes, and snippets.

@elricco
Last active February 16, 2023 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elricco/52324f429edb50ec79cb19d12d4ea838 to your computer and use it in GitHub Desktop.
Save elricco/52324f429edb50ec79cb19d12d4ea838 to your computer and use it in GitHub Desktop.
A random emoji prompt for (Oh my) zsh
prompt_context() {
# Custom (Random emoji)
emojis=(" ️" "πŸ”₯" "πŸ’€" "πŸ‘‘" "😎" "🐸" "🐡" "πŸ¦„" "🌈" "🍻" "πŸš€" "πŸ’‘" "πŸŽ‰" "πŸ”‘" "🚦" "πŸŒ™")
RAND_EMOJI_N=$(( $RANDOM % ${#emojis[@]} + 1))
prompt_segment black default "${emojis[$RAND_EMOJI_N]} "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment