On November 10, Apple unveiled the latest iteration of MacBook Pro, Air, and Mac Mini with its in-home Apple Silicon M1 chip. Being a longtime Mac user and developer, I was skeptical to move on from Intel-based systems to an ARM-based system due to the lack to support for dev tools like Docker and Homebrew (more on this later). However, due to the technological limitations of my 2012 MBP, I got myself a new Mac that was much more capable than my previous machine.

Fast-forward two weeks, and I am fully satisfied by how stupendously fast this machine is and the battery life it offers. But there was one glaring problem: setting up all the dependencies that I had accumulated over the years in my 2012 MBP. To alleviate this, I took the help of a good old friend: shell — more specifically, zsh.

Terminal has been part of macOS for a long time and this was an opportunity for me to utilize my skills to write a script that would install all the dependencies without aiming to install everything manually.

TL;DR:The following article talks about my experience with writing a shell script to set up dependencies on M1. If you are familiar with shell scripts and want to move forward with the setup, head to this repository.

#docker

Apple Silicon and Shell Scripts
1.05 GEEK