-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·35 lines (26 loc) · 957 Bytes
/
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
#!/usr/bin/env bash
# BASH script used to bootstrap a macOS machine.
# Author: Patrick Mullins ([email protected])
# Last update: October 9th, 2019
# Clear the Terminal screen
clear
# Define variables
BOOTSTRAP_ROOT=$(pwd)
declare version='0.3.2'
# Display version banner
echo "=================================="
echo "macOS Bootstrap v'$version "
echo "=================================="
# Install Command-line Developer Tools
if [[ $(/usr/bin/gcc 2>&1) =~ "Bootstrap: No developer tools were found!" ]] || [[ ! -x /usr/bin/gcc ]]; then
echo "Bootstrap: Installing Command-line Developer Tools"
xcode-select --install
fi
# Install Homebrew Applications
sh "$BOOTSTRAP_ROOT/boot_homebrew.sh"
# Modify macOS Defaults
sh "$BOOTSTRAP_ROOT/boot_macos.sh"
# Install personal dot files
sh "$BOOTSTRAP_ROOT/boot_dotfiles.sh"
# All done
echo "Bootstrap: All Done! Note that some of these changes require a logout/restart to take effect."