Skip to main content
  1. Posts/

Setup Macbook Pro

·119 words·1 min· loading · loading ·
Mac M3 Setup
Table of Contents

1. Install homebrew
#

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Add below lines in ~/.zshrc file (update the {username} before pasting!)

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/{username}/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

2. Install git
#

brew install git

3. Install iTerm2
#

brew install --cask iterm2

For next step, switch to iTerm2.

4. Install Oh My Zsh
#

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

5. Install PowerLevel10K Theme
#

git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

Update ~/.zshrc

ZSH_THEME="powerlevel10k/powerlevel10k"

To configure P10K

p10k configure

Increase the font size in the terminal to 20 :)

6. Plugins for iTerm2
#

  • Auto-suggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  • Syntax Highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  • Add the plugins in ~/.zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting web-search)
  • Load the changes
source ~/.zshrc

Done!