Setup new Macbook

Install Iterm2

Enable Natural Text Editing (option + arrow keys to move by word, FN + arrow keys to jump to begin/end of line): Preferences... > Profiles > Keys > Key Mappings tab > Presets > Natural Text Editing

Set hot key: iTerm2 -> Preferences -> Key -> + (key mapping) -> Shortcult: cmd + shift + t | Action: Select menu item... | Duplicate Tab

Set hotkey to switch to Iterm: Preferences... > Keys > Hotkey > Set your hotkey

Install Xcode
Run xcode-select --install from terminal or Go to App Store and install Xcode
Install xcode command line tools at

Install Homebrew

ruby -e "$(curl -fsSL"

Install posgresql
brew install postgresql

Install Source Tree

Install RVM

\curl -sSL | bash -s stable
# Ruby < 2.4 requires openssl 1.1
export PATH="/opt/homebrew/opt/openssl@1.1/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
export PATH="/usr/local/opt/libpq/bin:$PATH"
# Ruby flags for M1
export optflags="-Wno-error=implicit-function-declaration"
rvm install 2.3.1 --with-openssl-dir=/opt/homebrew/opt/openssl@1.1

Install NVM
nvm install node (latest version) or nvm install 14 (specific version)
nvm use 14

Install QT - Needed to run Capybara
brew install qt

brew install imagemagick --build-from-source

Install Heroku Toolbelt

Install Sublime Text 3
- Create a shortcut: ln -s "/Applications/Sublime" /usr/local/bin/subl
- Add alias echo "alias s=subl" >> ~/.zshrc
Disable auto-update

#sudo vim /etc/hosts