# Install Homebrew
sudo xcodebuild -license
cd "$(mktemp -d)" \
&& git clone https://github.com/ruby/fiddle \
&& cd fiddle \
&& bundle install --path vendor/bundle \
&& bundle exec rake build \
&& sudo gem install pkg/fiddle-1.0.1.gem
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Install oh-my-zsh
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
zsh
chmod -R 755 /usr/local/share/zsh
# Install asdf and Ruby
brew install coreutils curl git
brew install asdf
echo ". $(brew --prefix asdf)/asdf.sh" >> ~/.zshrc
asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf install ruby 2.7.1