-
Notifications
You must be signed in to change notification settings - Fork 1
/
omr
123 lines (122 loc) · 3.24 KB
/
omr
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/bin/bash
printf "Welcome to Oh My RSH, the all in one prompt changer."
sleep 0.5
printf "\nPlease select which prompt symbol you want to choose."
sleep 0.5
printf "\n1: Default"
sleep 0.5
printf "\n2: Lambda"
sleep 0.5
printf "\n3: ~$ aka Fish Prompt"
sleep 0.5
printf "\n4: Emojiprompt"
sleep 0.5
printf "\nPress Control + C to exit."
read promptsettings
if [ $promptsettings == 1 ]
then
sleep 0.5
end=$((SECONDS+3))
printf "Setting prompt arrow to default. Preview:
\n[runner@d7bf2abcc65b]-(/home/runner/Ruby-Linux-Shell-1/ruby-shell)
↳"
sleep 1
rm -rf config.yml
i=1
sp="/-\|_"
echo -n ' '
while [ $SECONDS -lt $end ]
do
printf "\b${sp:i++%${#sp}:1}"
done
printf "first_boot: false
prompt: '↳ '
message: 'Welcome to rsh v1.41. Enter "help" for help.'
# Hey there! If you want to know how to change your ASCII art logo on startup, just simply replace the logo in logo.txt with your ASCII art! Make sure you ran enable_logo too, Got it?
ascii: 'logo.txt'" >> config.yml
printf "\nFinished."
sleep 1
printf "\n"
exec ruby main
elif [ $promptsettings == 2 ]
then
sleep 0.5
end=$((SECONDS+3))
printf "Setting prompt arrow to lambda. Preview:
\n[runner@d7bf2abcc65b]-(/home/runner/Ruby-Linux-Shell-1/ruby-shell)
λ"
sleep 1
rm -rf config.yml
i=1
sp="/-\|_"
echo -n ' '
while [ $SECONDS -lt $end ]
do
printf "\b${sp:i++%${#sp}:1}"
done
printf "first_boot: false
prompt: 'λ '
message: 'Welcome to rsh v1.41. Enter "help" for help.'
# Hey there! If you want to know how to change your ASCII art logo on startup, just simply replace the logo in logo.txt with your ASCII art! Make sure you ran enable_logo too, Got it?
ascii: 'logo.txt'" >> config.yml
printf "\nFinished."
sleep 1
printf "\n"
exec ruby main
elif [ $promptsettings == 3 ]
then
sleep 0.5
end=$((SECONDS+3))
printf "Setting prompt symbol to ~$, also known as the Fish Shell Prompt. Preview: \n
[runner@d7bf2abcc65b]-(/home/runner/Ruby-Linux-Shell-1/ruby-shell)
~$"
sleep 2
rm -rf config.yml
i=1
sp="/-\|_"
echo -n ' '
while [ $SECONDS -lt $end ]
do
printf "\b${sp:i++%${#sp}:1}"
done
printf "
first_boot: false
prompt: '~$ '
message: 'Welcome to rsh v1.41. Enter "help" for help.'
# Hey there! If you want to know how to change your ASCII art logo on startup, just simply replace the logo in logo.txt with your ASCII art! Make sure you ran enable_logo too, Got it?
ascii: 'logo.txt'" >> config.yml
printf "\nFinished."
sleep 1
printf "\n"
exec ruby main
elif [ $promptsettings == 4 ]
then
sleep 0.5
end=$((SECONDS+3))
printf "Setting prompt symbol to Emojiprompt. Preview: \n
[runner@d7bf2abcc65b]-(/home/runner/Ruby-Linux-Shell-1/ruby-shell)
~💲⫸"
sleep 2
rm -rf config.yml
i=1
sp="/-\|_"
echo -n ' '
while [ $SECONDS -lt $end ]
do
printf "\b${sp:i++%${#sp}:1}"
done
printf "
first_boot: false
prompt: '~💲⫸ '
message: 'Welcome to rsh v1.41. Enter "help" for help.'
# Hey there! If you want to know how to change your ASCII art logo on startup, just simply replace the logo in logo.txt with your ASCII art! Make sure you ran enable_logo too, Got it?
ascii: 'logo.txt'" >> config.yml
printf "\nFinished."
sleep 1
printf "\n"
exec ruby main
else
printf "\nSorry, that wasn't a choice. Please select from one of the choices again."
sleep 0.5
exec ./omr
fi