You may need to setup up your brand new Mac or after purchasing a used one with factory reset for software development purposes. While I understand that the usage behavior of individuals differs, there are some settings and software that most of the developers use or should use.
In this article, I am going to cover setting up your mac for software development. I will keep this article updated with settings/software I come across in the future. Let’s begin.
Setting up Mac for Development
Let’s begin with updating your system to the latest macOS. If you already have the latest one, move to the next section.
The first thing you need to do is update your system.
To do that go: Apple menu () > About This Mac > Software Update.
Also, upgrade your OS to the latest version to have a more secure OS.
Xcode is a sort of mandatory software in Mac for software development. Xcode comes up with compilers and other basic software that we need to use to build programs.
To install Xcode, run the following command in the terminal.
Installation of Xcode may take some time depending on your internet bandwidth. It’s worth the wait.
I have just one word for Homebrew. It’s awesome. It’s the best software for the developer community. Homebrew is the package manager and allows you to install/update software with few lines of command.
Once Xcode is installed, run the following command in the Terminal to install Homebrew.
To verify Homebrew installation, run this:
Installing core softwares
Listing some of the core software that I believe every developer needs to have.
Just copy/paste the shell command shown below in the terminal to install.
Installing necessary softwares
Now, this may change according to your needs. Add/remove the packages based on your need.
If you are not using MocOS Catalina, you need to install ZSH separately.
Install Oh My ZSH.
Check out the configuration page to customize ZSH according to your need and taste.
First thing first, set up your Git username ( make sure it’s the same as the Github ).
git config --global user.email "[email protected]"
Next, create a global level .gitignore file. You can add/remove the file name as per your requirement.
create a new file in the home directory.
Copy/paste the following content.
# Thumbnail cache files
# Files that might appear on external disks
# Compiled Python files
# Compiled C++ files
# Application-specific files
Install Programming languages/framework software
Let’s install the required software for programming purposes. I generally use Node, Python, Rust, and C++. C++ already gets installed with Xcode. Let’s install the rest of them.
Installing Node using NVM:
Restart the terminal and run this command.
Verify the Node installation.
Run this command to install Python3.
For Python 2.7.
sudo python get-pip.py
Run this command to install Rust.
Verify Rust installation.
Installing Database softwares
I generally work with MongoDB, MySQL, and Redis. Let’s install them.
Run MYSQL as a service.
Verify the installation.
Configuring Visual Studio Code
I use the following VSCode extensions:
- Path intellisense
You can search these extensions in the VSCode and install them one by one.
And Cobalt2 theme from Wesbos.
It looks pretty good.
Here are a few things I change in the system preferences.
First, change the screenshots folder ( by default Mac save it on Desktop )
Add your iCloud account and sync Calendar, Find my Mac, Contacts, etc.
I change trackpad settings and enable the tap to click with one finger feature. I generally use Logitech MX master 2 as a wireless mouse.
I change the dock setting and make the icon size smaller. I remove lots of default applications from the dock as well. Keeping it minimal and simple.
If you have any suggestions, feedbacks or any software I am missing out big time. Do let me know.