Skip to content

Instantly share code, notes, and snippets.

@brisberg
Last active February 22, 2023 03:47
Show Gist options
  • Save brisberg/809a413c35a30e2aec386955076f48d6 to your computer and use it in GitHub Desktop.
Save brisberg/809a413c35a30e2aec386955076f48d6 to your computer and use it in GitHub Desktop.
Initial Mac Setup Script

Setup a new Macbook environment

On a fresh OSX installation, open the Terminal and run:

bash <(curl -sL https://gist.githubusercontent.com/brisberg/809a413c35a30e2aec386955076f48d6/raw/setup.sh)
echo "Installing xcode-stuff"
xcode-select --install
# Check for Homebrew (brew.sh),
# 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)"
fi
# Update homebrew recipes
echo "Updating homebrew..."
brew update
echo "Installing Git..."
brew install git
echo "Cleaning up brew"
brew cleanup
echo "Installing dotfiles from Github"
mkdir ~/DevProjects
git clone https://github.com/brisberg/dotfiles.git ~/DevProjects/dotfiles
cd ~/DevProjects/dotfiles
git checkout angler
sh ./install
echo "Setup Complete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment