New job! More later on that. They shipped me a company laptop and I wanted to go through and document the essensial tools that I used to get up and running for Ruby and Rails Development.
- Install Brave
This is my default browser these days. - Install iterm2
Default mac terminal won’t do - Install xcode
This one seems like it take half a day. - Open Xcode and agree to license.
- Install Oh My Zsh
- Install Homebrew
- Install ruby-build and rbenv via homebrew
brew install rbenv ruby-build
Follow the post-install instructions, these might become dated but here are the three I used as of Oct 30,2020
```
echo "export LDFLAGS=\"-L/usr/local/opt/readline/lib\"" >> ~/.zshrc
echo "export CPPFLAGS=\"-I/usr/local/opt/readline/include\"" >> ~/.zshrc
echo "export RUBY_CONFIGURE_OPTS=\"--with-openssl-dir=/usr/local/opt/openssl@1.1\"" >> ~/.zshrc
```
- Find latest ruby version latest ruby and set to global.
$ rbenv install -l 2.5.8 2.6.6 2.7.2
Install latest (this takes a while):
$ rbenv install 2.7.2
Set the global rbenv to this version:
rbenv global 2.7.2
After this, there will be other tools to install but this is my base setup.