Skip to content

Instantly share code, notes, and snippets.

@AhsenBaig
Last active July 3, 2024 17:22
Show Gist options
  • Save AhsenBaig/2800820c840e1da972e4b209de897185 to your computer and use it in GitHub Desktop.
Save AhsenBaig/2800820c840e1da972e4b209de897185 to your computer and use it in GitHub Desktop.
VS Code Powerline in Windows Terminal

VS Code Powerline in Windows Terminal

Starting from My Ultimate PowerShell prompt with Oh My Posh and the Windows Terminal

Alternative Tutorial: Set up Powerline in Windows Terminal

Install PowerShell

winget install Microsoft.PowerShell

Most of the instructions from above, skip to VS Code modification.

Install Font

Caskaydia Cove Nerd Font Complete

Cascadia PL

ttf - install for all users.

Where we installed

winget install JanDeDobbeleer.OhMyPosh
```PowerShell Install-Module posh-git -Scope CurrentUser Install-Module oh-my-posh -Scope CurrentUser ```

And modified the PowerShell profile

code $PROFILE

NOTE: PowerShell in Windows Terminal vs VS Code Path: C:\Users<User>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 Path: C:\Users<User>\Documents\PowerShell\Microsoft.PowerShell_profile.ps1

$PROFILE

Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox

Set the font to Code PL in PowerShell Profile

{
    // Make changes here to the powershell.exe profile.
    "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    "name": "Windows PowerShell",
    "commandline": "powershell.exe",
    "fontFace": "CaskaydiaCove NF",
    "hidden": false
},

VS Code modification

Go to settings.json (ctrl+,) and search for terminal and open settings.json

Find terminal.integrated if exist

"terminal.integrated"

Add the following line to the settings.json

"terminal.integrated.fontFamily": "CaskaydiaCove NF",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment