Beautify your Windows Terminal using Nerd Fonts and Oh-My-Posh 💻🎉

Vedant Kadam
3 min readMay 31, 2023

--

My Windows Terminal
  1. Install Windows Terminal: If you don’t have it installed already, you can download and install Windows Terminal from the Microsoft Store or from the GitHub repository (https://github.com/microsoft/terminal).
  2. Download Nerd Fonts using the following link https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.1/FiraCode.zip
  3. Unzip this folder and select all fonts and click on install
Nerd Font Installation

Next up is changing the default themes of our cmd

Settings -> Defaults -> Appearance -> Font Face to FiraCode

Choose the theme of your choice

Lets add some cool effects to our terminal 😊

Type these commands int the following order

  1. winget
  2. winget install JanDeDobbeleer.OhMyPosh -s winget
  3. oh-my-posh init pwsh — config“$env:POSH_THEMES_PATH\jandedobbeleer.omp.json”
  4. Get-PoshThemes (This will provide you the list of themes)
Posh Themes

Ctrl + Click on any theme this will one the json file of the respective font

At the very end of the terminal you will get a command by which you cab edit the theme of your cmd like -

command

oh-my-posh init pwsh — config ‘C:\Users\vedantkadam\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json’ | Invoke-Expression (see the pic)

So what you need to do is just and the end change the name of the font that you want for eg — here at the end we have “jandedobbeleer.omp.json” change it to “montys.omp.json” (example)

montys.json

Woooh you can see your desired theme but wait we are not done yet …..🥸 still the style is not saved yet

Run these commands:-

  1. New-Item -Path $PROFILE -Type File -Force
  2. notepad $PROFILE
  3. Copy the command you used to change theme and paste it in the notepad file which pops up and save the file.
Notepad file

Restart your terminal and you are done 🎉🎉there are many themes you can choose from link is given below :-

https://ohmyposh.dev/docs/themes

If you face any issues you can refer this amazing video which might help you … Enjoy !!!!! 👨‍💻😊

Video Reference

--

--

Vedant Kadam

Undergrad IT Student | Geo-politics Enthusiast | Gamer | Part time Cook 🧑‍🍳