brew tool

Official website: https://brew.sh

Install brew

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

Change the brew source to the domestic source

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 #Append to ~/.zshrc
brew update #Update homebrew
brew upgrade #Upgrade all installed packages
brew cleanup #Clean up old version packages after upgrade

iterm2

Install iterm2

1
brew cask install iterm2

Configuration:

  • Preferences–>Appearance–>Theme Select your favorite theme, I chose Light here
  • Preferences–>Profiles–>Colors Configure your favorite colors

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 optional oh my zsh themes: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes

All oh my zsh plugins: https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins

Cool theme

I chose my favorite spaceship-prompt

Install the fonts required for the theme 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

So far, my cool terminal has been completed.