-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
49 lines (40 loc) · 991 Bytes
/
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
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$__dir/scripts/util.sh"
case "${1:-}" in
all)
bash scripts/bootstrap.sh
bash scripts/software.sh
bash scripts/templates.sh
bash scripts/config.sh
bash scripts/link.sh
bash scripts/trust.sh
;;
bootstrap)
bash scripts/bootstrap.sh
;;
software)
bash scripts/software.sh
;;
config)
bash scripts/config.sh
bash scripts/templates.sh
bash scripts/link.sh
;;
link)
bash scripts/templates.sh
bash scripts/link.sh
;;
*)
echo "$0 [all|bootstrap|software|config|link]"
echo
echo "all - Install and configure everything, in order"
echo "bootstrap - Install what we need to install everything else"
echo "software - Install software and Brewfile"
echo "config - Set and link all configs"
echo "link - Just (re)link config files"
;;
esac