Skip to content

Setting up Windows Terminal with Oh-My-Posh

In this tutorial, I'll guide you through the process of customizing your Windows terminal using Oh-My-Posh.

Oh My Posh is a highly customizable prompt engine designed to elevate your command-line experience. With full support for colors, it allow users to create visually appealing and informative prompts in various shell environments.


Before we begin, make sure you have the following prerequisites in place:

Step 1: Install Windows Terminal

If you haven't already installed Windows Terminal, you can install from choco tool or get it from the Microsoft Store

Microsoft Store:

  • Open the Microsoft Store.
  • Search for "Windows Terminal" and click on the application's page.
  • Click the "Get" or "Install" button to download and install it.

Once Windows Terminal is installed, you can open it by searching for "Windows Terminal" in the Windows Start menu.

Step 2: Install Oh-My-Posh

Open your terminal and run the following command:

choco install oh-my-posh

Alt text

This command will download and install Oh-My-Posh on your system.

Step 3: Configure Oh My Posh

Once Oh-My-Posh is installed, you can configure your PowerShell prompt to use a custom theme. To configure your prompt, follow these steps:

Open your PowerShell profile for editing

code $profile
# or
notepad.exe $PROFILE

file will be empty initially, insert following

oh-my-posh.exe init pwsh | Invoke-Expression

Save and close your profile

open a new Windows Terminal instance to see the updated prompt with your chosen theme.

Alt text

Step 4: Install Nerd Font

Nerd Fonts are specialized fonts that include a wide range of icons and symbols commonly used in programming and terminal applications. These fonts are popular among developers and users who want to enhance their terminal experience. Here are the steps to install a Nerd Font on your system:

  • Choose a Nerd Font: Before you can install a Nerd Font, you need to decide which Nerd Font variant you want to use.You can find a list of available Nerd Fonts on the Nerd Fonts GitHub repository. DejaVu Sans Mono Nerd Font - is my favorite

  • Download the Nerd Font: Visit the following webstie to download your chosen of Nerd Font.

  • Install the Nerd Font: Once you have downloaded the Nerd Font, click on install button to install it on your Windows system: Alt text

  • Configure Windows Terminal to Use the Nerd Font: To use the Nerd Font in Windows Terminal, you'll need to configure your terminal settings. Here's how to do it:

    Alt text

    Alt text

To apply the changes, close and reopen Windows Terminal.

Step 5: Verify the Oh My Posh Install

To verify that Oh-My-Posh is correctly installed and configured, open Windows Terminal and ensure that you see your custom prompt with the selected theme. You should see a stylish and informative prompt that includes Git status, time, and other relevant information.

Now, You've successfully set up Windows Terminal with Oh-My-Posh, enhancing your command-line experience on Windows.

Alt text


By following these steps, you've successfully set up Windows Terminal with Oh-My-Posh and a Nerd Font. You now have a highly customizable and visually appealing terminal environment on your Windows system, perfect for coding and everyday tasks.

Feel free to explore different Oh-My-Posh themes and Nerd Font variants to personalize your terminal even further.