Skip to content

Latest commit

 

History

History
104 lines (74 loc) · 2.28 KB

OSX.md

File metadata and controls

104 lines (74 loc) · 2.28 KB

You are here because you already did Le Wagon FullStack and purchased a new computer. Let's set it up!

Command Line Tools

xcode-select --install

Sublime Text 3

Download and install it. Package Control / Config is now automatic at step "Dotfiles" below.

Homebrew

sudo rm -rf /usr/local/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)"

( + Q) your terminal and restart it.

GitHub

You have a new computer, let's generate a new SSH key:

mkdir -p ~/.ssh && ssh-keygen -t ed25519 -o -a 100 -f ~/.ssh/id_ed25519 -C "[email protected]"
cat ~/.ssh/id_ed25519.pub

Copy-paste the public SSH key which we outputed with the last command and add it to GitHub.

Dotfiles

export GITHUB_USERNAME="your_github_nickname" # Change this nickname!
mkdir -p ~/code/$GITHUB_USERNAME && cd $_ && git clone [email protected]:$GITHUB_USERNAME/dotfiles.git
cd ~/code/$GITHUB_USERNAME/dotfiles
git remote add upstream [email protected]:lewagon/dotfiles.git
git pull upstream master
zsh install.sh

( + Q) your terminal and restart it.

Ruby

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 && exec zsh
rbenv install 2.6.3
rbenv global 2.6.3

( + Q) your terminal and restart it. Check your ruby version with:

ruby -v

Gems

gem install rake bundler rspec rubocop pry pry-byebug hub colored octokit

Check our rails version with:

rails -v

Postgresql

brew install postgresql
brew services start postgresql

Redis

(Only if you use Sidekiq)

brew install redis
brew services start redis