Styling windows terminal theme

In this post, we are going to perform a set of steps to make the terminal look like this.

final view

Install Windows Terminal

Theming Windows PowerShell

Now we are going to use oh-my-posh to theme our terminal.

  1. Open PowerShell and run.

    Install-Module posh-git -Scope CurrentUser
    Install-Module oh-my-posh -Scope CurrentUser
  2. Enable the prompt:

    # Start the default settings
    # Alternatively set the desired theme:
    Set-Theme Agnoster
  3. then install PSReadLine

    Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
  4. To enable the engine to edit your PowerShell profile:

    if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
    notepad $PROFILE
  5. Append the following lines to your PowerShell profile:

    Import-Module posh-git
    Import-Module oh-my-posh
    Set-Theme Agnoster
  6. Download cascadia code font and install it (.ttf).

    open your terminal and then settings. It will open a JSON file(profiles.json) in a text editor. Update the first item from the list array.

    terminal settings

        // Make changes here to the powershell.exe profile
        "guid": "{xxxxxxxxxxxxxxxxxxxxxx}",
        "name": "Windows PowerShell",
        "commandline": "powershell.exe",
        "hidden": false,
        "fontFace": "CascadiaCode Nerd Font",
        "cursorColor": "#FFFFFF",
        "cursorShape": "bar",
        "fontSize": 12,
        "background": "#232524"

You should be able to see the changes in your terminal.

Now what

There are many themes available to try as listed in the theming engine page or you can create a new theme.

Good luck in exploring new themes.

Note: Written on day 6 of quarantine 😄.