-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbootstrap.sh
More file actions
28 lines (23 loc) · 896 Bytes
/
bootstrap.sh
File metadata and controls
28 lines (23 loc) · 896 Bytes
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
if [ -z `which git` ] ; then
if [ ! -f /usr/bin/gcc ] ; then
echo "You need to install XCode before we can proceed."
echo "If you don't want to install XCode, then you can install"
echo "a prebuilt git binary from http://code.google.com/p/git-osx-installer/"
echo "and rerun this installer"
exit 1
fi
if [ -z `which brew` ] ; then
echo "Installing homebrew..."
ruby -e "$(curl -fsS https://gist.github.com/raw/436471/install_homebrew.rb)"
fi
echo "Installing git..."
sudo brew install git
fi
if [ -d ${HOME}/.dotfiles ] ; then
echo "~/.dotfiles already exists. Run the following manually:"
echo "git clone git://github.com/well/dotfiles.git"
echo "DOTFILEPATH=<path to dotfiles repo> <path to dotfiles repo>/bin/dotfiles link"
exit 1
fi
git clone git://github.com/well/dotfiles.git ${HOME}/.dotfiles
DOTFILEPATH=${HOME}/.dotfiles ${HOME}/.dotfiles/bin/dotfiles link