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? 

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

Below Terminal will use your dreamy Terminal today onwards.



Pre Requisites

  • Windows 11 Terminal / Windows Terminal  from MS Store
  • Oh-My-Posh packages
  • Nerd fonts
  • Cascadia Code Fonts


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 release page

https://github.com/microsoft/cascadia-code/releases?WT.mc_id=-blog-scottha


Nerd font

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

https://www.nerdfonts.com/font-downloads


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)


You can change the theme using the theme path.


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

  • A path to a local configuration file


  • A URL pointing to a remote config


References

 

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


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