-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenus.sh
More file actions
75 lines (66 loc) · 1.89 KB
/
menus.sh
File metadata and controls
75 lines (66 loc) · 1.89 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
#!/bin/bash
show_menu(){
NORMAL=`echo "\033[m"`
MENU=`echo "\033[36m"` #Blue
NUMBER=`echo "\033[33m"` #yellow
FGRED=`echo "\033[41m"`
RED_TEXT=`echo "\033[31m"`
ENTER_LINE=`echo "\033[33m"`
echo -e "${MENU}*********************************************${NORMAL}"
echo -e "${MENU}**${NUMBER} 1)${MENU} git alias shortcuts ${NORMAL}"
echo -e "${MENU}**${NUMBER} 2)${MENU} ubuntu ssh fingerprint_keys ${NORMAL}"
echo -e "${MENU}**${NUMBER} 3)${MENU} find big size ${NORMAL}"
echo -e "${MENU}**${NUMBER} 4)${MENU} memsort ${NORMAL}"
echo -e "${MENU}**${NUMBER} x)${MENU} Exit ${NORMAL}"
echo -e "${MENU}*********************************************${NORMAL}"
echo -e "${ENTER_LINE}Please enter a menu option and enter or ${RED_TEXT}enter to exit. ${NORMAL}"
read opt
}
function option_picked() {
COLOR='\033[01;31m' # bold red
RESET='\033[00;00m' # normal white
MESSAGE=${@:-"${RESET}Error: No message passed"}
echo -e "${COLOR}${MESSAGE}${RESET}"
}
clear
show_menu
while [ opt != '' ];
do
if [[ $opt = "" ]]; then
exit;
else
case $opt in
1) exit;
# option_picked "Option 1 Picked";
curl -sSL http://dlj.bz/MQIGwj |bash;
;;
2) echo;
curl -sSL http://dlj.bz/7WcM |bash
;;
3) echo;
curl -sSL http://dlj.bz/PpYuZ2 |bash
;;
4) echo;
curl -sSL http://dlj.bz/SFDD |bash
;;
# 3) clear;
# option_picked "Option 3 Picked";
# sudo service apache2 restart;
# #show_menu;
# ;;
4) clear;
option_picked "Option 4 Picked";
ssh lmesser@ -p 2010;
#show_menu;
;;
x)exit;
;;
\n)exit;
;;
*)clear;
option_picked "Pick an option from the menu";
show_menu;
;;
esac
fi
done