-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitEmoji.sh
More file actions
44 lines (37 loc) · 761 Bytes
/
initEmoji.sh
File metadata and controls
44 lines (37 loc) · 761 Bytes
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
40
41
42
43
44
#!/bin/bash
declare -A emjArr8
emjArr8=(
['0']=':bug:'
['1']=':bulb:'
['2']=':hammer:'
['3']=':moneybag:'
['4']=':star:'
['5']=':fire:'
['6']=':cloud:'
['7']=':snowflake:'
['8']=':volcano:'
['9']=':heavy_check_mark:'
['10']=':ghost:'
['11']=':pushpin:'
['bug']=':bug:'
['idea']=':bulb:'
['fix']=':hammer:'
['money']=':moneybag:'
['star']=':star:'
['fire']=':fire:'
['cloud']=':cloud:'
['snow']=':snowflake:'
['volcano']=':volcano:'
['check']=':heavy_check_mark:'
['ghost']=':ghost:'
['pin']=':pushpin:'
)
for index in {0..11}
do
echo "${index} - ${emjArr8[$index]}"
done
read -p '(0 bug) :' emojiType
# default value set
emojiType=${emojiType:-0}
slectedEmoji=${emjArr8[$emojiType]}
echo $slectedEmoji