brew Tool

Official Website: https://brew.sh

Install brew:

1
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Switch brew source to domestic mirror:

1
2
3
4
5
6
7
git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles # Add to ~/.zshrc
brew update  # Update Homebrew
brew upgrade # Upgrade all installed packages
brew cleanup # Clean up old versions after upgrade

iTerm2

Install iTerm2:

1
brew cask install iterm2

Configuration:

  • Preferences → Appearance → Theme: Choose your preferred theme (I selected Light)
  • Preferences → Profiles → Colors: Customize colors as desired

Oh My Zsh

Official Website: https://ohmyz.sh

Install Oh My Zsh:

1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

All available Oh My Zsh themes: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
All Oh My Zsh plugins: https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins

Stylish Theme

I chose my favorite theme: spaceship-prompt

Install required font and set FiraCode:

1
2
3
4
5
git clone https://github.com/powerline/fonts
cd fonts
./install.sh
brew tap homebrew/cask-fonts
brew cask install font-fira-code

Font selection: Fira Code

That’s it — my stunning terminal is now ready!