It may not be particularly the best thing for your hard drive and computer in general but I tend to reformat around twice a year. The process takes a few hours and I believe I have gotten the process down and can set up my developing environment pretty quickly so I thought that I would write something about it as it is not always the easiest thing to do. As a side note I have been continually messing up installation of various versions of PostgreSQL and rvm/Ruby versions so I have had to encounter this process multiple times, so here is my process!
First thing is first. All operating systems come preloaded with a bunch of software that you aren’t necessarily going to use all the time or even use at all. After holding
cmd + r upon fresh restart of OsX and erasing/reinstalling a fresh copy of whichever Mac OS version is most current I generally take a few minutes to remove all the bloatware I can.
There are several applications that facilitate an easy uninstall.
https://macpaw.com/download/cleanmymac (to clear up unwanted language pacts and cache, etc).
https://freemacsoft.net/appcleaner/ (to delete unwanted programs included one above)
Then I install Magnet (
https://magnet.crowdcafe.com/) for easy window management via hotkeys. This program is incredible and although it is not free, the time it saves me GREATLY outweighs the $0.99 that it costs.
First I install Xcode
xcode-select --install It may ask you to install Xcode along with the command line tools, up to you. — — — [ The Command Line Tools Package is a small self-contained package available for download separately from Xcode and that allows you to do command line development in OS X. It consists of two components: OS X SDK and command-line tools such as Clang, which are installed in /usr/bin.]
Then I install homebrew (
https://brew.sh/) to download everything in terminal:
brew install git
brew cask install google-chrome
brew cask install visual-studio-code
brew cask install postman
brew cask install brave-browser
One of the best ways to install Node is by using Node Version Manager or NVM. Using nvm allows you to install multiple versions of node and it is installed in your home directory so you do not need any special privileges AND you don’t have to use sudo when installing packages globally.
https://github.com/nvm-sh/nvm). Once you have NVM on your machine, restart your terminal and install the latest NPM stable release with
nvm install stable
Before we move on we need to make sure that git is configured properly with the following commands:
git config -— global user.email “firstname.lastname@example.org
git config -— global user.name “Your Name”
After this you can create a new ssh-keygen in your terminal as well as on your GitHub account to enable authorized access to GitHub repositories from your newly reformatted machine.
From here you can install your favorite/most used databases with brew I.E.
brew install postgresql OR
brew install mysql etc.
From here I install zsh to make my terminal look good because who doesn’t enjoy a good looking terminal? ( https://ohmyz.sh/). If you wish to employ your oh-my-zsh theme in a fancier terminal I suggest using hyper with
brew cask install hyper . This should automatically use the
~/.zshrc file located in your home directory and apply its’ configuration.