-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.sh
executable file
·64 lines (52 loc) · 1013 Bytes
/
setup.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
#!/bin/bash
# DESCRIPTION
# Executes the command line interface.
# USAGE
# ./setup.sh [OPTION]
# OPTIONS
process_option() {
case $1 in
'all')
process_option 'os'
process_option 'brew'
process_option 'gem'
process_option 'git'
process_option 'ssh'
break;;
'brew')
brew bundle
break;;
'git')
source scripts/git.sh
break;;
'os')
source scripts/os.sh
break;;
'ssh')
source scripts/ssh.sh
break;;
'q'|*)
break;;
esac
}
# MENU
if [[ $# == 0 ]]; then
echo "
*******************
MENU
*******************
Available commands:
all: Setup everything
brew: Install Brewfile Dependencies
gem: Install Gemfile Dependencies
git: Configure git (e.g. adding aliases)
os: Configure macOS and install system tools
ssh: Create & copy SSH key
q: Quit/Exit.
"
read -p "Enter option: " response
echo ""
process_option $response
else
process_option $1
fi