-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.sh
executable file
·43 lines (33 loc) · 1.03 KB
/
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
#!/usr/bin/env bash
# created by: eric boxer 2015
# email: [email protected]
# http://ericboxer.net
# Request admin password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# # Get all the normal dotfiles in place
# echo "Creating dotfiles and symlinks..."
# echo ""
source symlinks.sh
source ~/.osx
# source ~/.bash_profile
# Maker usr/local writeable
mkdir /usr/local/include # see https://github.com/Homebrew/brew/issues/3228 for this
sudo chown -R $(whoami) $(brew --prefix)/*
# Check for Homebrew,
echo "Checking for homebrew..."
echo ""
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "Homebrew is already installed..."
fi
# Update homebrew recipes
echo "updating Homebrew..."
brew update
# Install everything from Homebrew
echo "Runnng Homebrew"
brew bundle