Last active
August 1, 2018 15:50
-
-
Save kbcaleb/11c6fa069f18bf61aedf5fdf5050917d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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