-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·44 lines (35 loc) · 875 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
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
DOTFILES_ROOT="$FRESH_LOCAL"
export DOTFILES_ROOT
set -e
cd $DOTFILES_ROOT
# These aren't currently in use
# user () {
# printf "\r [ \033[0;33m??\033[0m ] $1\n"
# }
#
# success () {
# printf "\r\033[2K [ \033[00;32mOK\033[0m ] $1\n"
# }
#
# info () {
# printf "\r [ \033[00;34m..\033[0m ] $1\n"
# }
#
# fail () {
# printf "\r\033[2K [\033[0;31mFAIL\033[0m] $1\n"
# echo ''
# exit
# }
# Install Homebrew first, as it's needed for almost everything else
"$DOTFILES_ROOT"/homebrew/install.sh
# Brewfile install
printf "\n› brew bundle\n"
sudo -K
brew bundle --no-lock
# Find the installers and run them one at a time
find . -name install.sh | while read installer ; do sh -c "${installer}" ; done
# Run OS X system setup file last
printf "\n› macOS system setup\n"
# "$DOTFILES_ROOT"/macos/system-setup.sh
printf "\n› Done\n"