How To Customize Your macOS/Linux Terminal
Yesterday I got the question about customizing macOS/Linux terminal more beautiful and not boring. Here we go, I will explain it in my first Medium article. I am using OS X Mojave 10.4.6 for my daily driver to do daily tasks. There are four component in this article, terminal application, shell type (like bash, zsh, fish, etc), fonts that support icon and emoji, and shell theme.
Terminal Application

In my OS X, I used iterm2 for my terminal application. I used this terminal application because it provides so many color schemes. The color that I used for my daily is Lovelace. It’s very good, soft, and not hurt the eyes. In Linux terminal you will have a lot of kind terminal application like Konsole/Tilix/Gnome Terminal, and so on. Linux is more customizable than OS X, so don’t worry about the color scheme you will get more color scheme too.

Shell Type
The terminal application is just an application. It would not change your shell prompt nor suggest entries from your command history. For that reason, I use zsh with the oh-my-zsh framework to manage my zsh configuration. If you use OS X Catalina you should not worry about it, because the default shell of OS X Catalina is zsh, but you must install zsh oh-my-zsh. For Mojave user use Homebrew to install zsh, with the command below:
$ brew install zsh
If you are a Linux user, please install it with a specific package manager like apt, dnf, or pacman. For example:
Debian/Ubuntu:
$ sudo apt-get install zsh
Fedora distro:
$ sudo dnf install zsh
Arch Linux based distro:
$ sudo pacman -S zsh
After you get the zsh working, you will need to install oh-my-zsh with one of the commands below:
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Or$ sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
After the installation you will get your terminal something like that:

Font and Shell Theme
Oh-my-zsh is the framework for manage our zsh configuration, but it has a default theme. It’s great for some people but not for me. It’s very standard basic and not really beautiful in my opinion. So in this article, I choose to use powerlevel10k. In those link, it recommends using MesloLGS font. The font is pretty good at least it support icon and emoji. Let’s use it in this article.
To install powerlevel10k just use the command below:
$ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
After that change your zsh configuration file to match with powerlevel10k with the command below:
$ sed -i -e "s~robbyrussell~powerlevel10k/powerlevel10k~g" ~/.zshrc
Close your terminal, and open it again. You will get installation powerlevel10k, and choose your own preference. After that my terminal look like this:

That’s it! Thank you for reading my article