Skip to content

Instantly share code, notes, and snippets.

@dwyn
Last active November 8, 2022 03:35
Show Gist options
  • Save dwyn/58533b79ac4b6891286b1ccc65b62cb3 to your computer and use it in GitHub Desktop.
Save dwyn/58533b79ac4b6891286b1ccc65b62cb3 to your computer and use it in GitHub Desktop.
# curl https://gist.github.com/dwyn/58533b79ac4b6891286b1ccc65b62cb3/raw --output install.sh
#!/bin/sh
set -eufo pipefail
echo ""
echo "🤚 This script will setup .dotfiles for you."
# Copy Brewfille
curl https://raw.githubusercontent.com/dwyn/559af8a6cdbec71f1463c0b65b522fba/raw --output Brewfile
# Install Homebrew
command -v brew >/dev/null 2>&1 || \
(echo '🍺 Installing Homebrew' && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && brew bundle)
echo 'source $(brew --prefix)/opt/antidote/share/antidote/antidote.zsh' >> .zshrc
echo 'antidote load' >> .zshrc
# Install Homebrew in Paths
echo ' ' >> /Users/dharmon/.zprofile
echo '# ••••••••••••••••••••••••••••••••••••••' >> /Users/dharmon/.zprofile
echo ' ' >> /Users/dharmon/.zprofile
echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/dharmon/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/dharmon/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# Brew Clean Up
brew cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment