-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshell-random-greeter
More file actions
executable file
·182 lines (155 loc) · 7.28 KB
/
Copy pathshell-random-greeter
File metadata and controls
executable file
·182 lines (155 loc) · 7.28 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#!/bin/bash
# Credits #
: '
ALL ART IS CREDITED TO ORIGINAL ARTIST WHEN APPLICABLE
ART SOURCES: https://www.asciiart.eu/
'
##############################################################################################################
# Customizing The Script #
# before the else conditional (but after the the first if statement) add the following line:
# elif [[ $RANDINT == value ]]; then
# echo "your"
# echo "quote"
# echo "here"
# VARIABLES #
# CHOOSING A QUOTE #
if [[ -n $1 ]];then
RANDINT=$1
else
RANGE=$(grep -c 'elif' /usr/bin/shell-random-greeter ) #counts the #of Else-If statements in file (number should always be one more than the final value in the elif statements)
RANDINT=$(($RANDOM% $RANGE )) # picks a random number depending on the amount of elif statements in the file
fi
CURRENT_TIME=$( date '+%H:%M:%S') # Just the current time for the 'TIME of terminal start-- can be used in the quotes section as well.'
##############################################################################################################
function welcome() { # Welcome script
echo -e '\e[31m<Welcome!>\e[0m' '{'"\e[33m$USER\e[0m"'@'"\e[33m$HOSTNAME\e[0m"'}' # username@host using env
echo -e "\e[92mYour Current Directory is\e[0m:" "\e[94m$PWD\e[0m" # Current Directory
echo -e "\e[92mTime of Terminal Start\e[0m:" "["$CURRENT_TIME"]" # Time of start
echo -e "\e[92mDefault Shell\e[0m:" $(echo $SHELL | cut -c 10-) # Default Shell
echo -e "\e[92mUptime\e[0m:" $(uptime --pretty | cut -c 4-)
echo '____________________________________'
echo -e "\n\e[92m<About system:>\e[0m" # System info
echo "CPU" $( lscpu | grep "Model name" ) # CPU
lsmem --summary # Memory info
echo "Kernel:" $(uname --kernel-release) # Kernel info
echo -e "____________________________________\n"
}
welcome
# ART and Quotes #
function art() {
if [[ $RANDINT == 0 ]]; then #AOT
echo '============================='
echo '-------{心臓を捧げよ!}-------'
echo '---{Dedicate your hearts!}---'
echo '----{!Shinzō o Sasageyo!}----'
echo '============================='
echo '- From Attack On Titan (進撃の巨人)'
elif [[ $RANDINT == 1 ]]; then #Outsiders
echo '@=================================@'
echo '!------{STAY GOLDEN PONYBOY}------!'
echo '@=================================@'
echo '- Dallas, The Outsiders'
elif [[ $RANDINT == 2 ]]; then #Who gave you perms????
echo ' #***************************************# '
echo '===Who gave you permission to launch me?==='
echo ' #***************************************# '
elif [[ $RANDINT == 3 ]]; then #WHO
echo ' #**************************# '
echo '===WHO IN THE FRICK ARE YOU?==='
echo ' #**************************# '
echo
echo "(Oh, it's just you," $USER ")"
elif [[ $RANDINT == 4 ]]; then #Forest Gump
echo ' #***********************************# '
echo '== Life is like a box of Chocalates. =='
echo ' #***********************************# '
echo '- Forrest Gump'
elif [[ $RANDINT == 5 ]]; then #Mishima
echo ' #******************************************# '
echo '=== The instant that the blade tore open ====='
echo '=== his flesh, the bright disk of the sun ===='
echo '== soared up and exploded behind his eyelids.='
echo ' #******************************************# '
echo ' - Runaway Horses, Yukio Mishima'
elif [[ $RANDINT == 6 ]]; then #HACKING THE PENTAGON
echo '+++HACKING THE PENTAGON+++'
echo 'Progress: [#####################]'
echo 'Done! Giving' [ $USER ] 'root access now...'
echo 'TIME OF ACCESS: ' $CURRENT_TIME
elif [[ $RANDINT == 7 ]]; then #Trollface
echo ' ▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄ '
echo ' █░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄ '
echo ' █░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█ '
echo ' █░░░░░░▄██▀▄▄░░░░░▄▄▄░░░░█ '
echo ' ▄▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░░█ '
echo '█░▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒░█'
echo '█░▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█'
echo ' █░▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█ '
echo ' █░░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█ '
echo ' █░░░░██░░▀█▄▄▄█▄▄█▄████░█ '
echo ' █░░░░▀▀▄░█░░░█░█▀██████░█ '
echo ' ▀▄░░░░░▀▀▄▄▄█▄█▄█▄█▄▀░░█ '
echo ' ▀▄▄░▒▒▒▒░░░░░░░░░░▒░░░█ '
echo ' ▀▀▄▄░▒▒▒▒▒▒▒▒▒▒░░░░█ '
echo ' ▀▄▄▄▄▄░░░░░░░░█ '
echo ' Problem? ▀▀▀▀▀▀▀▀ '
echo ' AsciiArt From: TwitchQuotes'
elif [[ $RANDINT == 8 ]]; then
echo ' SMOKE DAT ( )/ '
echo ' JUNGLEBOYZ )(/ '
echo ' ________________ ( /) '
echo '()__)____________))))) hjw'
echo 'AsciiArt by: Hayley Jane Wakenshaw | Source Asciiart.eu'
elif [[ $RANDINT == 9 ]]; then
echo ' ... '
echo ' ;::::; '
echo ' ;::::; :; '
echo " ;:::::' :; "
echo " ;:::::; ;. "
echo " ,:::::' ; OOO\ "
echo " ::::::; ; OOOOO\ "
echo " ;:::::; ; OOOOOOOO "
echo " ,;::::::; ;' / OOOOOOO "
echo ' ;:::::::::`. ,,,;. / / DOOOOOO '
echo " .';:::::::::::::::::;, / / DOOOO "
echo " ,::::::;::::::;;;;::::;, / / DOOO "
echo ';`::::::` ::::::;;;::::: ,#/ / DOOO '
echo ':`:::::::`;::::::;;::: ;::# / DOOO'
echo '::`:::::::`;:::::::: ;::::# / DOO'
echo '`:`:::::::`;:::::: ;::::::#/ DOO'
echo ' :::`:::::::`;; ;:::::::::## OO'
echo ' ::::`:::::::`;::::::::;:::# OO'
echo ' `:::::`::::::::::::; `:;::# O '
echo ' `:::::`::::::::; / / `:# '
echo ' ::::::`:::::; / / `# '
echo 'Unknown Artist: Source: Asciiart.eu'
elif [[ $RANDINT == 10 ]]; then
echo "TESTING TESTING? MIC CHECK: OK!"
elif [[ $RANDINT == 11 ]]; then
echo "goodbye!"
elif [[ $RANDINT == 12 ]]; then
echo "hi."
elif [[ $RANDINT == 13 ]]; then
echo "The way she had my toes curl should be a crime"
echo "-Timberlake, Bones"
elif [[ $RANDINT == 14 ]]; then
echo "VIM > NANO"
elif [[ $RANDINT == 15 ]]; then
echo "LONG LIVE KING TERRY."
echo "TALK TO GOD AND INSTALL TempleOS today!"
else
echo '|=====__-__=====|'
echo '|DanceDanceRate4|'
echo '[===============]'
fi
# END OF ART #
}
art
echo -e '____________________________________\n'
# DEBUG MENU (uncomment to use)
: '
echo "DEBUG MENU:"
echo "========================"
echo "RANGE: " $RANGE
echo "RANDINT:" $RANDINT
echo '