Customizing Oh-My-ZSH

Download a font from Nerd Fonts, that will include all the icons and stuff, I’m using Hack.

mkdir ~/.fonts && cd ~/.fonts
unzip ~/Downloads/

Now, you need to make the Terminal use this font as default. If the font dont appear on the fonts to be selected on the Preferences on the Terminal, you could change the system font by this:

1. Install GNOME Tweaks
2. Set the system monospace font to your nerd font
3. In the Terminal’s Font Preference, leave the Custom Font option unchecked, then it will use the system font.

Now let’s install the Powerlevel9K that will do all the magic.

git clone ~/.oh-my-zsh/custom/themes/powerlevel9k

Now edit ~/.zshrc with any editor.

nano ~/.zshrc

Change the ZSH_THEME to owerlevel9k/powerlevel9k and add this line to enable icons POWERLEVEL9K_MODE=”nerdfont-complete”. Add some other configs to show more info, like this:

POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(command_execution_time ram load status background_jobs history time)

Here the instructions about this configs.

Just close and open again the Terminal and is done.



Leave a Reply

Your email address will not be published. Required fields are marked *