How to make your windows terminal looks cool

Quick Summary : Installation – first, we need to install our windows terminal, you can install it from Windows app store. This allows you to always be on the latest version when we release new builds with automatic upgrades. Process – Open your windows terminal, and click on the down arrow on the app bar and then click…

Mohit Chandel
January 16, 2021
Reading time 8–13 minutes

Installation -

first, we need to install our windows terminal, you can install it from Windows app store. This allows you to always be on the latest version when we release new builds with automatic upgrades.

Process -

Open your windows terminal, and click on the down arrow on the app bar and then click on the settings, it will open the setting.json file in your default code editor.

Under the profile, list update PowerShell profile to this :-

{
    // Make changes here to the powershell.exe profile.
    "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    "name": "Windows PowerShell",
    "commandline": "powershell.exe -NoLogo -NoExit",
    "hidden": false,
    "colorScheme": "Tinacious Design (Dark)",
    "fontFace": "Fira Code",
    "fontSize": 11,
    "backgroundImageOpacity": 0.2,
    "acrylicOpacity": 0.8,
    "useAcrylic": true,
},


Now we need to add our color scheme,

Go to https://windowsterminalthemes.dev/ and choose any color scheme, Now click on Get Theme your color scheme is copied to your clipboard

In settings.json put your copied theme into the list name "schemes" like this

"schemes": [
        {
            "name": "Tinacious Design (Dark)",
            "black": "#1d1d26",
            "red": "#ff3399",
            "green": "#00d364",
            "yellow": "#ffcc66",
            "blue": "#00cbff",
            "purple": "#cc66ff",
            "cyan": "#00ceca",
            "white": "#cbcbf0",
            "brightBlack": "#dadada",
            "brightRed": "#ff2f92",
            "brightGreen": "#00d364",
            "brightYellow": "#ffd479",
            "brightBlue": "#00cbff",
            "brightPurple": "#d783ff",
            "brightCyan": "#00d5d4",
            "brightWhite": "#d5d6f3",
            "background": "#1d1d26",
            "foreground": "#cbcbf0"
        }
    ],

that's it with windows terminal themes, now we need to add some plugins

First, we need to install Oh My Posh, add this line in the PowerShell terminal window,

Install-Module oh-my-posh

While installation computer can ask you permission for installing a higher version of NuGet. You can simply press enter (default selection is “yes”) or can type “y” and then press enter.

After the installation is done now you need to install posh-git. For installing posh-git you need to type this line in the PowerShell terminal window

Install-Module posh-git

After installing the modules we need to import them, For that run following commands

Import-Module oh-my-posh
Import-Module posh-git

Boom Our terminal is ready to rock!


Adding the theme of an oh-my-posh to our terminal

For now, we are using Angnoster but you can check out other themes here https://github.com/JanDeDobbeleer/oh-my-posh#themes

set-theme Agnoster

Now your windows terminal is looking beautiful

But still the theme is not permanent,


For setting the theme permanent run the following command🚀

if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }

notepad $PROFILE

This will open a notepad. Add these lines to the notepad and save it

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

These will set the Agnoster theme permanently for Windows PowerShell.

Mohit Chandel

Mohit Chandel is a software developer by profession. He is an avid reader. He likes to play videogames at night. Usuaully, if he is not blogging or working, then you may find him outdoor going on hikes.