M1 Macbook Air Initial Setup
Notice! These posts are basically my learning notes.
There can misinformation and mistakes :(
If you find any wrong info, please leave a comment and I will get to it asap!
This post explains my initial setup on M1 Macbook Air(2020) for development.
It’s my first time using Macbook so some essential steps might be missing.
Development Setup
Here are some things that I find to be essential setups for development.
I didn’t include any programing language installation as I will do those along the way when I need them.
Homebrew
Intall via Terminal
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Add brew to PATH to enable commands
$ echo 'export PATH=/opt/homebrew/bin:$PATH' >> ~/.zshrc
Not sure if this is necessary but did it anyway
$ source ~/.zshrc
To check if installation has been done correctly and if command works
$ brew --version
Visual Studio Code
$ brew install visual-studio-code
Rosetta2
$ /usr/sbin/softwareupdate --install-rosetta
Git
$ brew install git
Java
Tap from Homebrew
$ brew tap AdoptOpenJDK/openjdk
Look for available versions
$ brew search openjdk
Install version 14
$ brew install adoptopenjdk14
Terminal Setup
Below are the setup needed to make terminal more user friendly and pretty
iTerm
$ brew install --cask iterm2
Choose color from https://iterm2colorschemes.com
Save the color configuration as text with no extension
Go to iTerm2 > Preferences > Profiles > Colors
Import Color Presets(mychoice : Arthur
)
Ohmyzsh
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Powerlevel10k
$ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
By this point, your .zshrc
probably was reset.
Run below to add brew back into terminal
$ echo 'export PATH=/opt/homebrew/bin:$PATH' >> ~/.zshrc
Also, turn on VSCode and tap Command
+ Shift
+ P
,
Type in Install
,
Click >Shell Command: Install 'code' command in PATH
In .zshrc
Line 11, change as the below,
ZSH_THEME="powerlevel10k/powerlevel10k"
Add below lines to settings.json
"terminal.external.osxExec": "iTerm.app"
"terminal.integrated.fontFamily": "MesloLGS NF"
Github CLI
$ brew install gh
$ gh auth login
$ git config --global user.name "your name"
$ git config --global user.email "your email"
$ git config --global init.defaultBranch main
etc
Google Chrome
$ brew install google-chrome
That was my rough setup for my first Macbook Air :)
Next up is some of useful extensions and setting for Visual Studio Code.
Leave a comment