Customizing Oh-My-ZSH

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

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

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 https://github.com/bhilburn/powerlevel9k.git ~/.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:

ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_MODE='nerdfont-complete'
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(command_execution_time ram load status background_jobs history time)

Here the instructions about this configs. https://github.com/bhilburn/powerlevel9k#prompt-customization

Just close and open again the Terminal and is done.

 

 

Leave a Reply

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