Skip to content

Instantly share code, notes, and snippets.

@Pelirrojo
Last active June 22, 2020 10:35
Show Gist options
  • Save Pelirrojo/1d9bf12601d4dbacc3a458afb66baa17 to your computer and use it in GitHub Desktop.
Save Pelirrojo/1d9bf12601d4dbacc3a458afb66baa17 to your computer and use it in GitHub Desktop.
List of programs and tools necessary for tuning a Mac to develop with Node.js/JS/Frontend & Docker.
#!/usr/bin/env bash
# Check requirements
git --version >/dev/null 2>&1 || { echo >&2 "I require git SCM Shell but it's not installed. ¯\_(ツ)_/¯ Aborting."; exit 1; }
read -p 'Type your email to create an ssh key? ' EMAIL
read -p "This will install a lot of dev stuff. Are you sure that you want to continue? (y/n) " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Install git & CLI tools
xcode-select --install
# Instalar oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Download & Run brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install wget
brew install curl
# Create SSH Key & Cache the Public key at MacOS Keygen
# https://apple.stackexchange.com/questions/48502/how-can-i-permanently-add-my-ssh-private-key-to-keychain-so-it-is-automatically
ssh-keygen -t rsa -C $EMAIL
ssh-add -K ~/.ssh/id_rsa
# Install node.js with nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
# Install python & Pip & pip-tools -> locally (symlink to /usr/local/bin instead /usr/bin)
# http://docs.python-guide.org/en/latest/starting/install3/osx/
brew install python
brew install python@2
brew install python@3
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
# Install MiniConda
curl -o- https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh | bash
# Download Chrome
wget https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
open ~/Downloads/googlechrome.dmg
sudo su -
cp -r /Volumes/Google\ Chrome/Google\ Chrome.app /Applications/
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment