-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.sh
46 lines (41 loc) · 2.46 KB
/
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
#!/usr/bin/env bash
# ===============================================================================================
#
#` CAPITAN: Andrés Bretón, [email protected]
#` REPO: https://github.com/bretonics/Setup
#` LICENSE: MIT (https://bretonics.mit-license.org/)
#` FILE: setup.sh
#` USAGE: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/bretonics/Setup/HEAD/setup)"
#
# ===============================================================================================
# Running the setup without any options below will run a MAIN setup by default. Use the following to accommodate your needs.
#
# Options:
#
# -B Sync backups from latest Time Machine backup
# -D Use defaults (skip confirmation when applying secondary settings)
# -E Essentials only installations
# -F Run full main install with defaults (Sets -B, -D, -S, and -s)
# -M Main install setup (-s=true)
# -S Set Mac setting system preference defaults (Default: false)
# -i [main|essentials] Explicit install type declaration, i.e. -M or -E)
# -m <mode> Run additional specified mode installation
# -s Run secondary installation (Default: false)
# -h Prints this usage message
#
# Most likely you will want to pass your own Brewfile as followed:
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/bretonics/Setup/HEAD/setup.sh)" "" ~/absolute/path/to/Brewfile
#
# You can also pass any of the available options:
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/bretonics/Setup/HEAD/setup.sh)" "" -s
# Alternatively, you can download also download the repo (https://github.com/bretonics/Setup/archive/main.zip) and
# customize the setup to your specifications. See https://github.com/bretonics/Setup#customizable-setup
# ===============================================================================================
# Download latest release and start setup process
URL=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/bretonics/Setup/releases/latest \
| grep "zipball_url" \
| cut -d '"' -f 4)
curl -L -H "Accept: application/vnd.github.v3+json" --url ${URL} -o Setup.zip
unzip Setup.zip -d Setup
cd Setup/bretonics-Setup*
caffeinate bash ./install.sh "$@"