-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·65 lines (56 loc) · 1.03 KB
/
install.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
#!/bin/bash
function install_6502_dev_env() {
cd 6502
./install-6502-dev-env.sh
cd ../
}
function install_zsh() {
cd zsh
./install-zsh.sh
cd ../
}
function bootstrap() {
cd bootstrap
./bootstrap.sh
cd ../
}
function install_all() {
bootstrap
install_6502_dev_env
install_zsh
}
##
# Color Variables
##
green='\e[32m'
blue='\e[34m'
clear='\e[0m'
##
# Color Functions
##
ColorGreen(){
echo -ne $green$1$clear
}
ColorBlue(){
echo -ne $blue$1$clear
}
menu(){
echo -ne "
$(ColorGreen '1)') Bootstrap environment
$(ColorGreen '2)') Install all
$(ColorGreen '3)') Install 6502 Assembly Development Environment
$(ColorGreen '4)') Install ZSH and Oh-my-zshell
$(ColorGreen '0)') Exit
$(ColorBlue 'Choose an option:') "
read a
case $a in
1) bootstrap ; menu ;;
2) install_all ; menu ;;
3) install_6502_dev_env ; menu ;;
4) install_zsh ; menu ;;
0) exit 0 ;;
*) echo -e $red"Unsupported option: "$clear; WrongCommand;;
esac
}
# Call the menu function
menu