DEV Community

Cover image for Change Windows Terminal Theme
ilhamsabir
ilhamsabir

Posted on

3 2

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.

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay