Change Windows Terminal Theme
Tags: showdev, programming, productivity
Published: 2021-03-22 06:29:57


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](http://https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701?activetab=pivot:overviewtab "Link")

### #Second
Install **Install Modules Oh-my-Posh**
```sh
 Install-Module posh-git -Scope CurrentUser
 Install-Module oh-my-posh -Scope CurrentUser
```

### #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](https://github.com/JanDeDobbeleer/oh-my-posh#themes), after that import on your profile
    ```sh
     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.
    [![](https://miro.medium.com/max/700/1*ZK9pkVr5MswTi-NwT0K20Q.png)](https://miro.medium.com/max/700/1*ZK9pkVr5MswTi-NwT0K20Q.png)
- Add this style object on "schemes"
    ```sh
     "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
    ```sh
      "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
```
Select your active theme and edit that json.