-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·41 lines (30 loc) · 1.4 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
#!/usr/bin/env bash
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `osxprep.sh` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Step 1: Update the OS and Install Xcode Tools
echo "----------------------------------------------------"
echo "- Updating OSX -"
echo "- If this requires a restart run the script again. -"
echo "----------------------------------------------------"
# Install all available updates
sudo softwareupdate -ia --verbose
# Install only recommended available updates
#sudo softwareupdate -ir --verbose
echo "----------------------------------------------------"
echo "- Installing Xcode Command Line Tools -"
echo "----------------------------------------------------"
# Install Xcode command line tools
xcode-select --install
echo "----------------------------------------------------"
echo "- Installing Hombrew and Brewfile -"
echo "----------------------------------------------------"
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh \
| bash
brew install mas-cli
curl -L https://raw.githubusercontent.com/jaydenrasmussen/dotfiles/master/Brewfile \
| brew bundle --file=-
git clone https://github.com/jaydenrasmussen/dotfiles.git ~/ && cd ~/dotfiles
chmod +x ./**/*.sh *.sh
./scripts/devtools.sh