Windows 11 Terminal decorate like a boss with oh-my-posh, Cascadia code, Nerd fonts, and PowerShell

Every day you see only a blinking cursor on Command Line or Powershell? No colors, same font every day. Do you want to change your windows Terminal beautiful way?

Chathuranga Sandun Kumara
5 min readJan 7, 2023

Every day you see only a blinking cursor on Command Line or Powershell? No colors, same font every day. Do you want to change your windows in Terminal beautiful way?

This post is helping to customize your Windows 11 Terminal beautifully and nicely.

Below Terminal will use your dreamy Terminal today onwards.

csandun’s decorated PowerShell

Pre Requisites

1. Windows 11 Terminal / Windows Terminal from MS Store

Get Windows Terminal from the Microsoft Store

The Windows Terminal is a modern, fast, efficient, powerful, and productive terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and WSL. Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering…

2.Oh-My-Posh packages

Home | Oh My Posh

A prompt theme engine for any shell.

Oh My Posh

3.Nerd fonts

Nerd Fonts — Iconic font aggregator, glyphs/icons collection, & fonts patcher

Iconic font aggregator, collection, & patcher: 3,600+ glyph/icons, 40+ patched fonts: Hack, Source Code Pro, more. Popular glyph collections: Font Awesome, Octicons, Material Design Icons, and more

Nerd FontsRyan L McIntyre

4.Cascadia Code Fonts

GitHub — microsoft/cascadia-code: This is a fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal.

This is a fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal. — GitHub — microsoft/cascadia-code: This is a fun…

GitHubmicrosoft

Steps to reach your dreamy Terminal

1. Get The Windows Terminal

  • In Windows 11, you have an inbuilt Terminal application. You can find it through the apps list.
  • If you are using Windows 10, you want to download the Terminal from the Store. Here is the downloadable link for the Windows Terminal.

2. Install the Cascadia Code font And Nerd Font

Cascadia Code font

Cascadia Code is a power line compatible font that is already used in Visual studio as well. Cascadia Code has a unique and lovely character set most compatible with Terminal.

This link is the Cascadia Code release page.

Nerd font

Nerd font has been used in Oh-My-Posh symbols. Download your favorite font style from here.

Here I am using ‘Hack Nerd Font’ fonts. It is my favorite one through the Nerd font collection.

Then install both fonts in the windows font directory.

3. Install Oh-My-Posh packages in PowerShell

The Oh-My-Posh is a theme engine for any shell. It is customizable, Portable, and colorable. Believe me, Oh-My-Posh is a friendly tool for customizing your Terminal.

🖥️

Install these commands to install Oh-My-Posh modules. I recommend PowerShell 6.2.3 or above

i. First, Open a PowerShell prompt and run the following command:

This command installs a couple of things:

  • oh-my-posh.exe — Windows executable
  • themes — The latest Oh My Posh themes

Create a PowerShell profile and add theme settings

ii. Second, identify whether your Powershell profile file exists or not on your PC.

iii. Third, open notepad using

iv. Fourth, Add prompt command to the profile file.

Edit the profile file by adding this command.

Customization of the theme

You can choose your favorite one through the plenty of themes by providing the Oh-My-Posh team. (Theme list)

Themes | Oh My Posh

Oh My Posh comes with many themes included out-of-the-box. Below are some screenshots of the more common themes.

Oh My Posh

You can change the theme using the theme path.

There are two possible values the — config flag can handle:

  1. A path to a local configuration file

2. A URL pointing to a remote config

DONE !!!!

Now you can see like this.

Oh-My-Posh gives me an exciting look at the boring Windows Terminal. Come on!!!!! ✌😂

References

  1. Youtube How to set up an awesome prompt with your Git Branch, Windows Terminal, PowerShell, + Cascadia Code!
  2. BlogPost How to make a pretty prompt in Windows Terminal with Powerline, Nerd Fonts, Cascadia Code, WSL, and oh-my-posh
  3. oh-My-posh documentation — documentation

🖥️

Put your comments on this topic. See ya soon on another blog post. 👊👊

--

--