-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.sh
executable file
·109 lines (78 loc) · 1.82 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/usr/bin/env bash
# Heavily inspired by https://github.com/alrra/dotfiles
source 'utils.sh'
ask_for_sudo
###
ask_for_confirmation 'Install/Update Xcode ?'
printf '\n'
if answer_is_yes; then
print_info 'Install/Update Xcode'
./installs/xcode.sh
print_in_green '\n ---\n\n'
fi
###
ask_for_confirmation 'Install/Update homebrew ?'
printf '\n'
if answer_is_yes; then
print_info 'Install/Update homebrew'
./installs/homebrew.sh
print_in_green '\n ---\n\n'
fi
###
ask_for_confirmation 'Install/Update node ?'
printf '\n'
if answer_is_yes; then
print_info 'Install/Update node'
./installs/node.sh
print_in_green '\n ---\n\n'
fi
###
ask_for_confirmation 'Install/Update brew packages ?'
printf '\n'
if answer_is_yes; then
print_info 'Install/Update brew packages'
./installs/brew_packages.sh
print_in_green '\n ---\n\n'
fi
###
ask_for_confirmation 'Install/Update brew casks ?'
printf '\n'
if answer_is_yes; then
print_info 'Install/Update brew casks'
./installs/brew_casks.sh
print_in_green '\n ---\n\n'
fi
###
ask_for_confirmation 'Install/Update global node modules ?'
printf '\n'
if answer_is_yes; then
print_info 'Install/Update global node modules'
./installs/node_modules.sh
print_in_green '\n ---\n\n'
fi
###
ask_for_confirmation 'Install/Update misc (vim-plug, ...) ?'
printf '\n'
if answer_is_yes; then
print_info 'Install/Update misc'
./installs/misc.sh
print_in_green '\n ---\n\n'
fi
###
ask_for_confirmation 'Symlink dotfiles into place ?'
printf '\n'
if answer_is_yes; then
print_info 'Symlink dotfiles into place'
./symlinks.sh
print_in_green '\n ---\n\n'
fi
###
ask_for_confirmation 'Change shell ?'
printf '\n'
if answer_is_yes; then
print_info 'Changing shell'
./installs/shell.sh
print_in_green '\n ---\n\n'
fi
###
print_success "Installation finished"