OS X Machine Setup

Never use $ sudo

Install software

Basic development tools

Follow those instructions (inspired from https://github.com/lewagon/setup/blob/master/second-setup/OSX.md)

# XCode libraries
xcode-select --install
# Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
sudo chown -R $(whoami) $(brew --prefix)/*
brew update
function install_or_upgrade { brew ls | grep $1 > /dev/null; if (($? == 0)); then brew upgrade $1; else brew install $1; fi }
install_or_upgrade "git"
install_or_upgrade "wget"
install_or_upgrade "imagemagick"
install_or_upgrade "jq"
install_or_upgrade "openssl"
# Oh my ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# restart the terminal
# Generate a public key
# (Use the email you use to create your Github account)
mkdir -p ~/.ssh && ssh-keygen -t ed25519 -o -a 100 -f ~/.ssh/id_ed25519 -C "[email protected]"
cat ~/.ssh/id_ed25519.pub
# Once you have that public key
# Go to your GitHub settings
# Add that SSh key to your account
# Get some dotfiles
git clone [email protected]:lewagon/dotfiles.git
cd dotfiles
./install.sh
# Restart the terminal
# Install RBENV
sudo rm -rf $HOME/.rbenv /usr/local/rbenv /opt/rbenv /usr/local/opt/rbenv
brew uninstall --force rbenv ruby-build
unset RBENV_ROOT && exec zsh
brew install rbenv ruby-build && echo 'eval "$(rbenv init -)"' >> ~/.zshrc && exec zsh
# Restart the terminal
# Install ruby
rbenv install 2.7.2
rbenv global 2.7.2
# Restart your terminal
# Install some gems
gem install rake bundler rspec rubocop pry pry-byebug hub colored octokit rails
# Install postgres
brew install [email protected] && brew services start [email protected]
# Restart the terminal
# Install redis
brew install [email protected]
# Install watchman
brew install watchman
# Then some other tools & libraries
brew install heroku/brew/heroku
brew install nvm
# Restart the terminal
cat ~/.zshrc
# make sure you see the following 2 lines in it:
# export NVM_DIR="$HOME/.nvm"
# [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"
# If not : copy those two lines
# Open your .zshrc file in a text editor
# Past those two lines in the 'Load nvm' part of the file
# Install Node.js
nvm install lts/erbium
# Check out which node version you need on
# https://nodejs.org/en/download/releases/
#Install yarn and some useful add-ons
brew install yarn
yarn global add ember-cli
yarn global add eslint
yarn global add eslint-plugin-ember-suave
yarn global add eslint-plugin-hbs

Clone repositories

Clone every prospectio GitHub account's repository you have access to into your chosen folder.

Configure your computer

Then, also follow those steps:

  • enable filevault on your computer and give the recovery key to IT

Tips and tricks for productivity

  • Change Keyboard's response time (System Preferences > Keyboard)