-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.sh
executable file
·77 lines (73 loc) · 1.56 KB
/
bootstrap.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
#!/usr/bin/env bash
SCRIPT_PATH=$( cd $(dirname $0) ; pwd -P )
source $SCRIPT_PATH/bootstrap/include.sh
echo
echo "Bootstrapping..."
echo
e_arrow "Xcode or Command Line Tools for Xcode must be installed before proceeding!"
echo
PS3=$'\nPick your poison: '
options=("Bootstrap all the things" "Dotfiles" "Homebrew" \
"Homebrew Formulas" "Homebrew Casks" "OS X Defaults" "ASDF" "Ruby" \
"Erlang" "Elixir" "Node" "Quit")
select opt in "${options[@]}"; do
case $opt in
"Bootstrap all the things")
install_homebrew
install_formulas
install_casks
install_dotfiles
install_defaults
install_asdf
install_rubies
install_erlangs
install_elixirs
install_nodes
;;
"Dotfiles")
e_header "$opt"
install_dotfiles
;;
"Homebrew")
e_header "$opt"
install_homebrew
;;
"Homebrew Formulas")
e_header "$opt"
install_formulas
;;
"Homebrew Casks")
e_header "$opt"
install_casks
;;
"OS X Defaults")
e_header "$opt"
install_defaults
;;
"ASDF")
e_header "$opt"
install_asdf
;;
"Ruby")
e_header "$opt"
install_rubies
;;
"Erlang")
e_header "$opt"
install_erlangs
;;
"Elixir")
e_header "$opt"
install_elixirs
;;
"Node")
e_header "$opt"
install_nodes
;;
"Quit")
echo
e_success "All done. You must restart for these changes to take effect."
break;;
*) echo invalid option;;
esac
done