DEV Community

Cover image for Change Windows Terminal Theme
ilhamsabir
ilhamsabir

Posted on

Change Windows Terminal Theme

The Windows Terminal is a modern, fast, efficient, powerful, and productive terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and WSL. Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and custom themes, styles, and configurations.

But to make windows terminal look beauty we need to add a theme, so lets start.

#First

Install Windows Terminal from Microsoft Store, Go to Store

#Second

Install Install Modules Oh-my-Posh

 Install-Module posh-git -Scope CurrentUser
 Install-Module oh-my-posh -Scope CurrentUser
Enter fullscreen mode Exit fullscreen mode

#Third

  • Create *Powershell Profile *

     // use vscode
     code $PROFILE
    
  • Add this on your profile

     Import-Module posh-git
     Import-Module oh-my-posh
    
  • Import theme, to pick a theme check here, after that import on your profile

     Import-Module posh-git
     Import-Module oh-my-posh
    
     # your theme
     Set-PoshPrompt -Theme paradox
    
    

#Fourth

  • Customize your windows terminal color, open your terminal , and click setting.
  • Add this style object on "schemes"

     "schemes": [
        {
            "name": "CustomeTheme",
            "black": "#7d8b8f",
            "red": "#b23a52",
            "green": "#789b6a",
            "yellow": "#b9ac4a",
            "blue": "#225a79",
            "purple": "#bd4f5a",
            "cyan": "#2b7c71",
            "white": "#d2d8d9",
            "brightBlack": "#888888",
            "brightRed": "#f24840",
            "brightGreen": "#80c470",
            "brightYellow": "#ffeb62",
            "brightBlue": "#4196ff",
            "brightPurple": "#fc5275",
            "brightCyan": "#53cdbd",
            "brightWhite": "#d2d8d9",
            "background": "#2b2d2e",
            "foreground": "#d2d8d9",
            "selectionBackground": "#e4e8ed",
            "cursorColor": "#708284"
        }
    ],
    
  • On list , add that theme

      "list":
        [
            {
                // Make changes here to the powershell.exe profile.
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Windows PowerShell",
                "commandline": "powershell.exe",
                "hidden": false,
                "fontFace": "Fira Code",
                "fontSize": 9,
                "colorScheme": "CustomeTheme"
            },
            {
                // Make changes here to the cmd.exe profile.
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "Command Prompt",
                "commandline": "cmd.exe",
                "hidden": false
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            }
        ]
    
  • Save it, and reload your terminal

Notes

You can change your theme color, by open

 $Home\[My ]Documents\WindowsPowerShell\Modules\oh-my-posh\3.118.0\themes
Enter fullscreen mode Exit fullscreen mode

Select your active theme and edit that json.

Top comments (0)