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.
- 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.
- I always just type
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 [email protected]
git config --global core.excludesfile "~/.gitignore"
echo ".idea" > ~/.gitignore
echo ".DS_Store" > ~/.gitignore
- Add the following to
~/.ssh/config
followed byssh-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
- Idea
- Sublime Text 3
- Package Control for Sublime
- CMD+SHIFT+P: EditorConfig
- Atom
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
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
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
Good old Java needs the dmg installer.
brew install maven
Via SDKMAN
curl -s "https://get.sdkman.io" | bash
source ~/.sdkman/bin/sdkman-init.sh
sdk i groovy