Windows terminal

scoop is necessary
You will need to have scoop to install Windows terminal, if you don't install it, check this guide: scoop.

Windows terminal is a recent terminal for Windows, by Microsoft.

Features

  • Tabs
  • JSON config
  • Multiple Shell profiles (even WSL if installed)
  • Shorcuts
  • Switch tabs Ctrl + Tab

Documentation

Installation

You can easily install it with scoop (from bucket extras). You can install it from Windows Store instead, if you like it.

PowerShell
scoop install windows-terminal

You will find Windows Terminal in startup menu, launch it and you will see the new terminal, click on โŒต and select Settings (Ctrl + ,), this will open JSON configuration. Any update will be applied directly.

Here it's just an example, check official documentation if you want to know more about Windows terminal configuration.This example will give you a terminal with black background, green font and two shortcuts: Ctrl + W to close tab and Ctrl + T to open new tab.

Terminal configuration example

Profile

You can improve your current profile with some modules, so you need to find your current profile.

PowerShell
$PROFILE

Oh My Posh

Optional: upgrade your PowerShell to 7+

sudo scoop install Meslo-NF ; scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json

Update Microsoft.PowerShell_profile.ps1, to find it, execute $PROFILE and you will get the path

Microsoft.PowerShell_profile.ps1
Invoke-Expression (oh-my-posh --init --shell pwsh --config "$(scoop prefix oh-my-posh)/themes/jandedobbeleer.omp.json")

Add "fontFace": "MesloLGM NF" to Windows Terminal JSOn settings

{
  "profiles": {
    "list": [
      {
        "guid": "{79285a8e-036c-446f-8a9c-78994e34bf78}",
        "fontFace": "MesloLGM NF"
      }
    ]
  }
}
scoop update oh-my-posh
oh-my-posh --print-shell

VS Code

Open JSON Settings in VS Code

{
  "terminal.integrated.automationShell.windows": "Windows.Terminal.PowershellCore",
  "terminal.integrated.fontFamily": "MesloLGM NF"
}

Update PowerShell

Download the Windows (x86) stable .msi version, update Settings JSON of Windows Terminal:

{
  "profiles": {
    "list": [
      {
        "guid": "{79285a8e-036c-446f-8a9c-78994e34bf78}",
        // "commandline": "powershell.exe",
        "commandline": "C:\\Program Files (x86)\\PowerShell\\7\\pwsh.exe"
      }
    ]
  }
}
The path of $PROFILE will be change, check it.