English
Français

Blog of Denis VOITURON

for a better .NET world

Windows Terminal - Display the GIT status

Posted on 2020-12-09

Recently, Microsoft released a page that explains how to customize Windows Terminal to colour and display GIT status. Git Colored

The steps necessary to customize Windows Terminal are:

  1. This display requires the use of Powerline glyphs. Without this font, you will see a square instead of the appropriate symbols. You can download and install these Cascadia Code Fonts (extract ZIP and right-click on the TTF files).

    Git Colored

  2. Install Windows Git (if not yet installed).

  3. Install Posh-Git and Oh-My-Posh in PowerShell.
    Install-Module posh-git -Scope CurrentUser
    Install-Module oh-my-posh -Scope CurrentUser
    

    Git Colored

  4. Modify the PowerShell console boot script: notepad $PROFILE. This command opens the notepad in your C:[User]\Documents\WindowsPowerShell folder.
    Import-Module posh-git
    Import-Module oh-my-posh
    Set-Theme Paradox
    

    Git Colored

  5. Use the font Cascadia Code PL, in your Windows Terminal configuration: menu Settings and search Windows PowerShell.

    {   
       "name": "Windows PowerShell",
       "commandline": "powershell.exe",
       "fontFace": "Cascadia Code PL",
    },
    

Restart your Windows Terminal and navigate to your Git folders.

Languages

EnglishEnglish
FrenchFrançais

Follow me

Recent posts