Customizing the Powershell terminal with oh-my-posh


Default terminal in a powershell looks like the following and this blog helps in making the terminal look fancy with features




powershell terminal customized

Nice to have

Good to have the Windows Terminal (or Preview) app installed from Windows app store for customizing the font windows terminal app


Install Nerdfonts

Fonts can be previewed using

  • Pick any font available here and install it on the Windows machine by downloading it

  • Download the zip file and extract the ttf files
  • Right click and hit install as shown below

font install

Install winget on the machine

There are multiple ways of installing wingeton a given windows machine. One easier thing would be to look for winget in the Windows Appstore and shows up as App Installer.

Sometimes this doesn't go through and a reliable way to install winget would be, via the github releases of official git repository: msixbundle winget

Double click on the .msixbundle file and go through the prompts and Winget will be installed winget installed winget installed

Install oh-my-posh

Run the following command

winget install JanDeDobbeleer.OhMyPosh

Expected output should look similar to the Following

Found Oh My Posh [JanDeDobbeleer.OhMyPosh] Version 8.13.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
  ██████████████████████████████  6.55 MB / 6.55 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Add the oh-my-posh command to Powershell profile file

  • Use your favorite text editor and open $PROFILE file, which gets run before the powershell launches, using VSCode (code) here to launch the profile file

    code $PROFILE
  • Add the following linked

    oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\paradox.omp.json" | Invoke-Expression

    Restart Windows Terminal App

Update the font in the Windows terminal settings app

  • Set the font to the downloaded nerd font type face font change terminal


powershell terminal customized


Latest Blogposts

Storing Github access token in git credential store

Using git credentials store the github access token to avoid the re-prompting of username and pwd

4 April 2023

Token generation for Registering Self Hosted Github Runner via REST API

Explains how to generate a token using github API to be used in turn with Github self hosted runner registration

21 March 2023

Setting up a Self Hosted Github Runner

Explains how to setup a Github self hosted runner and register

20 March 2023

Managing the NodeJS versions on Windows

Node Version Manager (nvm) helps in managing multiple NodeJS versions

13 November 2022