Tong's blog


Tong's blog

Setup your fancy terminal

Setup your fancy terminal

Tong's photo
·Jan 26, 2023·

1 min read

Table of contents

  • Setup your fancy terminal
  • Install Z shell (zsh)
  • Install Oh My Zsh (omz)
  • Set zsh as your default shell
  • Install Oh My Zsh plugins
  • (a fast fancy prompt written in Rust)
  • Result

Setup your fancy terminal

Using your shell with Oh My Zsh and Starship on macOS

Some use fish shell as it is an interactive, user-friendly, and modern shell. But it does not have POSIX sh compatibility. Using fish as your default shell could break part of your system. In this post, I will focus on zsh. With powerful plugins. You can have a powerful interactive interface.

Install Z shell (zsh)

brew install zsh

Install Oh My Zsh (omz)

sh -c "$(curl -fsSL"

Set zsh as your default shell

chsh -s /usr/local/bin/zsh

Install Oh My Zsh plugins

Clone zsh-autosuggestions, zsh-syntax-highlighting and zsh-completions.

git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-completions

Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):

    # other plugins...
) (a fast fancy prompt written in Rust)

You need Nerd Font installed and enabled in your terminal.

We will install Fira Code Nerd Font.

brew tap homebrew/cask-fonts
brew install --cask font-fira-code-nerd-font

Open your terminal preferences and enable the font you've just downloaded.


Add the following to the end of ~/.zshrc:

eval "$(starship init zsh)"


Terminal screenshot

Share this