Update : As of the 20/04/2022, I’m no longer installing most my development environment in the same way, I’ve made this post explaining my transition to development containers.
With each release of macOS, I clean install everything on my MacBook
just to be extra safe and avoid long debugging hours if there is an
incompatibility. Thus this guide is about setting up your machine
quickly and in a predictable way.
I’m primarily doing ML but I also set up various environnements, so feel free to be selective while reading this guide. I
removed a lot of very specific things to make a good balance between development
and general macOS usage.
Initial formatting steps
When everything you care about is backed up you can proceed with pressing CMD⌘+R on startup.
Then go to Disk Utility, format your drive with APFS and install macOS.
Complete the initial set up with your Apple ID and choose your privacy preferences,
you should now be on the desktop.
In your terminal let’s copy & paste to install Homebrew:
Then let’s make sure everything is up to date:
You can now install your apps, or search for it on the Homebrew website:
Here are some formulae, make sure to understand each software that you install before trusting a random internet guide:
We can now configure Python:
To finish the powerlevel10k and zsh setup we need the following:
We also need to configure git basics properly :
macOS is better with some tweaks:
Finally before closing the terminal I setup powerlevel10k:
Everthing else
Once this is done I usually login into my password manager, retreive software licences, ssh keys and proceed to login to some applications like Google Chrome, Discord, etc.
Here is everything I changed in the System Preferences app
General > Enable Dark Mode
Desktop > Live wallpaper selection
Desktop > Screensaver > Hot Corners > Bottom Left > CMD⌘ + Display sleep
Dock > Enable Automatically hide
Siri > Disable show Siri in menu bar
Notifications > Disable everything or remove sounds
Screen Time > Enable & share across devices
Security > General > Require password > Immediately
Trackpad > More Gestures > Enable everything
Sharing > Setup the computer name
iCloud > iCloud Drive > Enable Desktop & Document
Keyboard > Text > Disable spelling and capitalization
Some Mac App Store apps that I use
1Password (Password Manager)
Xcode (Code apps)
Amphetamine (Keep Mac awake)
Adguard (Safari ad disable)
The Unarchiver (Almost unrar for Mac)
Parcel (Track packages)
Conclusion
This was a quick look at how I install macOS, I hope this helped you in your next fresh install.