-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlinux-script.sh
executable file
·93 lines (88 loc) · 1.89 KB
/
linux-script.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
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
#!/bin/bash
source ./src/lib/base-script.sh
function initial_main_menu() {
script_logo
PS3="Select an option to see the scripts: "
select option in "Exit" "[MENU] Arch (Desktop)" "[MENU] Arch (WSL)" "Fedora (Desktop)" "Ubuntu (Desktop)" "Ubuntu (WSL)" "Utilities Scripts"; do
echo "You choose $option"
case $option in
"Exit")
clear
echo "Exiting..." && echo
break
;;
"[MENU] Arch (Desktop)")
clear
echo_caption "Arch"
./"src/scripts/arch-script.sh"
;;
"[MENU] Arch (WSL)")
clear
echo_caption "Arch"
./"src/scripts/wsl-arch-script.sh"
;;
"Fedora (Desktop)")
clear
echo_caption "Fedora"
./"src/scripts/fedora-script.sh"
;;
"Ubuntu (Desktop)")
clear
echo_caption "Ubuntu"
./"src/scripts/ubuntu-script.sh"
;;
"Ubuntu (WSL)")
clear
echo_caption "Ubuntu"
./"src/scripts/wsl-ubuntu-script.sh"
;;
"Utilities Scripts")
clear
echo_caption "Utilities"
utilities_menu
;;
*)
clear
echo_error "ERROR: Invalid Option"
initial_main_menu
break
;;
esac
break
done
}
function utilities_menu() {
PS3="Select the script: "
select script in "Go Back" "Setup GPG and SSH for GitHub" "Install ZSH + Oh My ZSH"; do
echo "You chose the $script"
case $script in
"Go Back")
clear
main
;;
"Setup GPG and SSH for GitHub")
clear
echo_caption "Git, GPG and SSH setup (UTILS)"
./src/utils/git-gpg-ssh-setup.sh
;;
"Install ZSH + Oh My ZSH")
clear
echo_caption "Setting Up ZSH + Oh My ZSH"
install_zsh
install_oh_my_zsh
;;
*)
clear
echo_error "ERROR: Invalid Option"
utilities_menu
;;
esac
break
done
}
function main() {
clear
initial_main_menu
echo "EXIT CODE: $?"
}
main