Skip to content

Instantly share code, notes, and snippets.

@cdl
Created September 22, 2015 19:55
Show Gist options
  • Save cdl/7b1de39759131e59be6c to your computer and use it in GitHub Desktop.
Save cdl/7b1de39759131e59be6c to your computer and use it in GitHub Desktop.
# going to assume you're using Bash for this - if not, replace "bash_profile" with
# your shell profile (~/.zshrc, etc)
# install make + gcc + essential build tools
xcode-select --install
# install homebrew (check brew.sh to make sure this command is up to date)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# make sure your system is good to brew
brew doctor
# if the above didn't give any errors, you're good to continue
# set up git, pyenv, nvm, as well as some essentials
brew install git pyenv nvm wget watchman hub
# set up pyenv
# change bash_profile to your alt profile if not using bash (e.g: zshrc, etc)
printf "# pyenv\nif which pyenv > /dev/null; then eval "$(pyenv init -)"; fi\n\n" >> ~/.bash_profile
# set up nvm
# again, change "bash_profile" if necessary
mkdir ~/.nvm
cp $(brew --prefix nvm)/nvm-exec ~/.nvm/
printf "# nvm\nexport NVM_DIR=~/.nvm\nsource $(brew --prefix nvm)/nvm.sh\n\n" >> ~/.bash_profile
# be sure to re-source your bash profile
# again, use the right profile and change ".bash_profile" if necessary
. ~/.bash_profile
# configure Git - be sure to replace the name + email strings with
# your real name and email
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
# install python
pyenv install 2.7.9
pyenv global 2.7.9
pyenv rehash
# install pip packages
pip install awscli
pip install pre-commit
# set up node
nvm install 0.12.2
nvm alias default 0.12.2
. ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment