Skip to content

Instantly share code, notes, and snippets.

@chrissy-dev
Last active June 5, 2019 15:59
Show Gist options
  • Save chrissy-dev/3487b86d4dc1017af2d94ed10707e913 to your computer and use it in GitHub Desktop.
Save chrissy-dev/3487b86d4dc1017af2d94ed10707e913 to your computer and use it in GitHub Desktop.
Setting up a new Macbook

When setting up a new Mac this should be the bare minimal that is installed and working.

Assumptions

  • Should be a managed admin or full admin.

Install Apple Command Line Tools (Installs Git)

xcode-select --install

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Install nvm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash

The script clones the nvm repository to ~/.nvm and adds the source line to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm

Install a node version

nvm install 10.16.0

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install rbenv

brew install rbenv 

You will need to add the following source line to your profile (~/.bash_profile, ~/.zshrc,~/.profile, or ~/.bashrc).

# Load rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

Install a Ruby version

rbenv install 2.3.0 

If you run into errors with zlib install a ruby version using the following.

brew install zlib
RUBY_CONFIGURE_OPTS="--with-zlib-dir=$(brew --prefix zlib)" rbenv install 2.3.0 

Install software with homebrew cask

brew cask install iterm2 atom tower slack google-chrome firefox sketch spectacle 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment