Just finished setting up a dev environment from scratch on a factory-reset MacBook. I used Homebrew for everything I could. Not saying this is the best approach, but that’s my step-by-step:
If new installs don’t show, update shell during stepsexec zsh
Install dependencies with Homebrew
brew install git brew install rbenv
rbenv install ruby 3.4.6 rbenv global 3.4.6 ruby --version
Postgres installation seems a bit fragile. Apparently you can end up with corrupted files and a rather easy approach then is to delete them and install again:
I used to reload shell with source ~/.zshrc until I came across an official FAQ answer How do I reload the zshrc file?. The one of three options I prefer now: