Skip to content

Instantly share code, notes, and snippets.

@codeincontext
Created August 29, 2016 22:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeincontext/05e043c85649936a709e0172f401c69d to your computer and use it in GitHub Desktop.
Save codeincontext/05e043c85649936a709e0172f401c69d to your computer and use it in GitHub Desktop.
Print a random star/success emoji (for my prompt)
#!/bin/bash
emojis=( ✨ ⚡️ 💫 🔑 )
num_emojis=${#emojis[*]}
echo "${emojis[$((RANDOM%num_emojis))]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment