Oh My Zsh + PowerLevel10k = 😎 terminal

Hi there, The developers always use the terminal, but it is boring and has no colors or shapes.
Today we will transform our terminals into a wonderful, colorful, supportive terminal that offers suggestions and has a memory, we’ll do it by OMZ and design it by PowerLevel10k

Pre-requisites

if you’re using Windows, you can install and configure WSL

and I recommended to use Ubuntu or Debian wsl plugin

Setup zsh

in the command line type

type zsh

Install Oh My Zsh

PowerLevel10k

  • Install Powerlevel10k using the following command

Then you need to enable it, change the value of ZSH_THEME to following in ~/.zshrc file :

Configure Powerlevel10k Theme

  • Make sure your terminal font is FiraCode NF.

font link: url

for windows users: url

Cheat-sheet for Windows

if you’ve Windows terminal you can open your settings and in UNIX preferences and add fontFace prop,
assign it to FiraCode NF.

Windows Terminal url in Microsoft Store: url

Windows Terminal repo: url

p10k configure

type

you can choose your style…

Plugins (Optional, Good to have!)

Clone plugins

  • zsh-syntax-highlighting — It enables highlighting of commands whilst they are typed at a zsh prompt into an interactive terminal. This helps in reviewing commands before running them, particularly in catching syntax errors.
  • zsh-autosuggestions — It suggests commands as you type based on history and completions.

ls tools

  • colorls: A Ruby script that colorizes the ls output with color and icons
  • exa: is a modern replacement for ls

colorls

warn 🙃

maybe you’ll get some gem errors, you should fix it

Linux

exa

Activate the plugins

In ~/.zshrc file replace the line starting with plugins=() to below line.

colorls

or exa

Some more official plugins — ohmyzsh plugins

after all these steps type

Finally it should be like this 👇

Mac

Windows(WSL) or Linux

check out my new cli app secman

That’s it, see you next time 👋

Founder of secman-team. full-stack dev. enjoys working on cli apps, websites, automation (CI/CD), and databases.