[](https://hackmd.io/9JJOwWS_TqugVJ7BtiP0LA)
<img src="https://i.imgur.com/OtIpgET.jpg" height="250px" width="1000px">
# Beautify Terminal
Through this tutorial, you’ll be able to make your terminal looks super cool. If you can’t beat others with coding, at least beat them with good Terminal interface.
> - Install **Nerd Font**
> - Install **zsh**
> - Install zsh theme: **powerlevel10k**
> - Setup powerlevel10k
Many people recommand installing iTerm, but I think the Terminal build into Mac is good enough, so there’s no need to install another terminal.
## <span style="color: blue;">**Install Nerd Font**</span>
To make your Terminal look better, fonts are important. [Nerd Fonts](https://www.nerdfonts.com/#home) is a project that patches developer targeted fonts with a high number of icons.

There are several ways to install nerd fonts. I’m a mac user, so I use [Homebrew](https://brew.sh/index_zh-tw) to install it, which makes everything easier to handle.
>💡 Homebrew is a package manager, that makes install, update, uninstall applications and utilities on Mac easier with simple command lines.
>
You can checkout [this link](https://github.com/ryanoasis/nerd-fonts#font-installation) to find out other ways to install nerd fonts.
```
brew tap homebrew/cask-fonts
brew install --cask font-hack-nerd-font
```
After successfully installing nerd fonts. Remember to change fonts in your Terminal.
Preference → Profile → Text → Font → Change

## <span style="color: blue;">**Install zsh**</span>
[zsh](https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH) is an extended version of the bash.
Use homebrew to install it
```
brew install zsh
```
Set zsh as your default shell
```
chsh -s /usr/local/bin/zsh
```
## <span style="color: blue;">**Install powerlevel10k**</span>
```
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
```
## <span style="color: blue;">**Setup powerlevel10k**</span>
After type in command lins above, restart zsh with `exec zsh` ( or you can just reopen your Terminal), and it will appear a series of configuration.
There are several commands you can use if you type in `p10k command`

Finally, you will get a customised Terminal interface.

# Reference
- [Nerd Font](https://www.nerdfonts.com/#home)
- [zsh](https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH)
- [powerlevel10k](https://github.com/romkatv/powerlevel10k)