I'm sharing this next scripts that usually use to setup my Mac. Often that person is myself in a close future (frequenly break or reset my Mac)
Run next script and choose which system do you want to setup:
sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/frani/setup/main/init.sh)"