/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/$(whoami)/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
function install_or_upgrade { brew ls | grep $1 > /dev/null; if (($? == 0)); then brew upgrade $1; else brew install $1; fi }
install_or_upgrade "wget"
install_or_upgrade "imagemagick"
install_or_upgrade "openssl"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
echo 'export PATH=/opt/homebrew/bin:$PATH' >> ~/.zshrc
# (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
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
gem install rake bundler rspec rubocop pry pry-byebug hub colored octokit rails
# Then some other tools & libraries
brew install heroku/brew/heroku
# 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"
# On macOS Big Sur with M1 use the following:
# [ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/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
# Check out which node version you need on
# https://nodejs.org/en/download/releases/
#Install yarn and some useful add-ons
yarn global add ember-cli
yarn global add eslint-plugin-ember-suave
yarn global add eslint-plugin-hbs