Skip to content

Instantly share code, notes, and snippets.

@kbcaleb
Last active August 1, 2018 15:50
Show Gist options
  • Save kbcaleb/11c6fa069f18bf61aedf5fdf5050917d to your computer and use it in GitHub Desktop.
Save kbcaleb/11c6fa069f18bf61aedf5fdf5050917d to your computer and use it in GitHub Desktop.
#!/bin/bash
# Install Homebrew
if ! hash brew 2>/dev/null
then
echo "Installing Homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Setup ~/Projects
if [ ! -d ~/Projects ]; then
echo "Creating ~/Projects/ directory"
mkdir ~/Projects
fi
# Install dotfiles
if [ ! -d ~/Projects/dotfiles ]; then
echo "Downloading dotfiles"
cd ~/Projects \
&& git clone https://github.com/kbcaleb/dotfiles.git \
&& cd dotfiles \
&& set -- -f; source bootstrap.sh
fi
# Setup Homewbrew
cd ~/Projects/dotfiles && ./brew.sh
# Setup Atom
cd ~/Projects/dotfiles
apm install --packages-file package-list.txt
# Setup osx
cd ~/Projects/dotfiles && ./.macos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment