Skip to content

Instantly share code, notes, and snippets.

@colbywhite
Last active June 28, 2020 18:07
Show Gist options
  • Save colbywhite/9e922b89f52096f95cbe35f9e1a5e001 to your computer and use it in GitHub Desktop.
Save colbywhite/9e922b89f52096f95cbe35f9e1a5e001 to your computer and use it in GitHub Desktop.
New Mac For Devs

This is a quick personal guide I use when given a new Mac (usually from work) and I want to install all of the tools I use for development.

Apps

Browsers

Shell

  • iTerm2
  • git
    • I always just type git --version which will make XCode pop up. Then I just follow the instructions. I'm sure there is a more automated way to accomplish that. Then do the following.
ssh-keygen
cat ~/.ssh/id_rsa.pub | pbcopy  # copy's key to clipboard for pasting into GitHub/Bitbucket
git config --global user.name "John Doe"
git config --global user.email johndoe@users.noreply.github.com
git config --global core.excludesfile "~/.gitignore"
echo ".idea" > ~/.gitignore
echo ".DS_Store" > ~/.gitignore
  • Add the following to ~/.ssh/config followed by ssh-add -K ~/.ssh/id_rsa
Host *
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_rsa
  • Oh My ZSH!
    • sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  • HomeBrew
    • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    • brew install wget tree vim
  • vim-colors-solarized
  • My dot files

IDEs

App Store Apps

Languages

Ruby

Using RVM:

brew install gpg
gpg --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
# Or this version since many company networks block the hkp port
# gpg --keyserver hkp://ipv4.pool.sks-keyservers.net:80 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable --ruby
source ~/.rvm/scripts/rvm
gem install pry

Python

brew install pyenv
pyenv install 3.8.0
pyenv global 3.8.0
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
pip install --upgrade pip
pip install virtualenv awscli

Node

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
nvm ls-remote --lts
nvm install lts/erbium
nvm alias default lts/erbium

Java

Good old Java needs the dmg installer.

brew install maven

Groovy

Via SDKMAN

curl -s "https://get.sdkman.io" | bash
source ~/.sdkman/bin/sdkman-init.sh
sdk i groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment