Just brew install ghostty. Launch it, then choose Ghostty -> Settings. Paste the text into the bottom of the config file and save.
Reload the entire app (using cmd + q), because some changes require it to restart and not just reload the config while running.
Note: This is assuming you've already got a good shell, powerline, and config manager like
oh-my-zsh.