Skip to content

Instantly share code, notes, and snippets.

@QuinnrElder
Last active February 4, 2022 18:33
Show Gist options
  • Save QuinnrElder/1858779dac8becac2bff679441e49aed to your computer and use it in GitHub Desktop.
Save QuinnrElder/1858779dac8becac2bff679441e49aed to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Congrats on your new Mac! Let's get you setup, Quinn"
echo "***********************"
echo "* Installing Brew *"
echo "***********************"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "**************************"
echo "* Installing Formula *"
echo "**************************"
brew install \
caddy \
git \
git-extras \
git-secrets \
imagemagick \
jq \
nvm \
shellcheck \
vim \
pure
echo "***************************"
echo "* Installing Heroku CLI *"
echo "**************************"
brew tap heroku/brew && brew install heroku
echo "************************"
echo "* Installing Casks *"
echo "************************"
brew install --cask \
1password \
alfred \
dropbox \
harvest \
moom \
xbar \
rocket \
flotato \
keybase \
\
slack \
microsoft-teams \
zoom \
obs \
recordit \
\
firefox \
google-chrome \
\
iterm2 \
docker \
visual-studio-code \
sublime-text \
kaleidoscope \
gpg-suite-no-mail \
\
tweetbot \
spotify \
autodesk-fusion360 \
ultimaker-cura \
skitch \
dozer
brew tap homebrew/cask-fonts
brew install --cask font-fira-code
echo "*********************************"
echo "* Fox Harvest Time Format *"
echo "*********************************"
defaults write ~/Library/Containers/com.getharvest.harvestxapp/Data/Library/Preferences/group.com.getharvest.Harvest.Documents.plist TimeFormat hours_minutes
echo "************************"
echo "* Setup Dotfiles *"
echo "************************"
if [ ! -d ~/dotfiles ]; then
git clone https://github.com/robtarr/dotfiles.git ~/dotfiles
fi
cd ~/dotfiles
for link in .gitconfig .gitignore .gitmessage.txt .zshrc; do
if [ -L "$HOME/$link" ]; then
echo "Link '$link' exists"
else
ln -s "$PWD/$link" "$HOME/$link"
fi
done
echo "*****************"
echo "* Setup NVM *"
echo "*****************"
NODE_VERSION=14 PROFILE=/dev/null sh -c "$(curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh)"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment