-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemoji-prompt.sh
39 lines (33 loc) · 2.49 KB
/
emoji-prompt.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
random_emoji() {
# Seed random generator
RANDOM=$$$(date +%s)
local face_emoji=(😈 👹 👺 🤡 💩 👻 ☠️ 👽 👾 🤖 🎃 👨🏻 🧔🏻 🕵🏻 👨🏻🎤 👨🏻💻 👨🏻🔧 👨🏻⚖️ 🤵🏻 🎅🏻 🐶 🐱 🐭 🐹 🐰 🦊 🐻 🐼 🐨 🐯 🦁 🐮 🐷 🐸 🐵 🙈 🙉 🙊 🐔 🐧 🐦 🐤 🐥)
local folder_emoji=(🦷 💅 🧶 👠 🎩 👑 👓 🐛 🐙 🦀 🐡 🐟 🐳 🌵 🌳 🍄 🌼 🌞 🌝 🌛 🔥 🌈 🌤 🌧 ⛄️ ☂️ 🌊 🍏 🍎 🍐 🍊 🍋 🍌 🍉 🍇 🍓 🍈 🍒 🍑 🥭 🍍 🥥 🥝 🍅 🍆 🥑 🥦 🌶 🌽 🥐 🥖 🧀 🍳 🥩 🍖 🦴 🌭 🍔 🍟 🍕 🍝 🍣 🍤 🍙 🍦 🍰 🍭 🍬 🍩 🍪 🍼 ☕️ 🍺 🍷 🍾 🍽 🏆 🏅 🎪 🎬 🎨 🎲 🎤 🎧 🎹 🥁 🎸 🎮 🧩 🚗 🚕 🚙 🚌 🚎 🏎 🚓 🚑 🚒 🚐 🚚 🚛 🚜 🚲 🚨 🚡 🚝 🚄 🚅 🚂 🚇 ✈️ 🛫 🚀 🛸 🚁 🛶 ⛵️ 🚤 🛳 🚢 ⚓️ 🚧 🚦 🗿 🗽 🗼 🏰 🏯 🎡 🎠 ⛱ 🏖 🏝 🌋 ⛰ 🗻 ⛺️ 🏠 🏚 🏭 🏢 🏛 ⛩ 🌅 🌄 🎇 🎆 🌇 🌆 🏙 🌃 📱 💻 🖥 🕹 💽 💾 💿 📀 📼 📷 ☎️ 🧭 ⏱ ⏰ ⌛️ 📡 💡 🧯 💸 💰 💎 🧰 🛠 ⚙️ 🧲 🔫 🧨 🔮 🧿 💈 💊 🚽 🛎 🔑 🧸 🖼 🛍 🎁 🎈 🎏 🎀 🎊 🎉 🎎 🏮 💌 📫 📮 📕 📌 📍 📝 ✏️ 🔒 ❤️ 🧡 💛 💚 💙 💜 ☮️ ☯️ ⚛️ ☢️ ☣️ 🆚 🆘 🛑 💯 🔞 🚷 🚳 🚭 ⚠️ 🚸 ♻️ ✳️ Ⓜ️ 🌀 ♿️ 🛄 🚼 🚻 🆗 🆒 🆕 📣 🔔 💬)
local day=$(date +%d)
local month=$(date +%m)
day=${day#0}
month=${month#0}
if [[ $month -eq 2 && $day -eq 14 ]]; then
# valentine's day
folder_emoji=(💌 ❤️ 🧡 💛 💚 💙 💜 ❣️ 💕 💞 💓 💗 💖 💘 💝)
elif [[ $month -eq 10 ]]; then
# halloween
face_emoji=(👹 👺 👻 💀 🎃 🧛🏻♂️ 🧟♂️ 🕷 🕸 )
elif [[ $month -eq 11 && $day -eq 5 ]]; then
# bonfire night
folder_emoji=(🎇 🎆)
elif [[ $month -eq 12 && $day -le 25 ]]; then
# christmas
face_emoji=(🎅🏻)
folder_emoji=(🎄 🎁 ☃️ ⛄️)
elif [[ $month -eq 12 && $day -eq 31 ]]; then
# new years eve
folder_emoji=(🍾 🥂 🎊 🎉)
fi
local array=("${face_emoji[@]}")
if [[ $1 == "folder" ]]; then
array=("${folder_emoji[@]}")
fi
SELECTED_EMOJI=${array[$RANDOM % ${#array[@]}]};
echo $SELECTED_EMOJI;
}