Still using Window's original CMD interface? Teach you a trick to optimize the interface perfectly

Hello, guys. I'm "big data Zen" When using Window for development, my friends may have the feeling that its own command line, that is, the CMD we are familiar with, the interface is really "a little ugly". In view of this problem, I decided to write an article to teach you how to beautify our CMD interface, so that you can have a more comfortable visual experience. Don't say much, let's get straight to the point!

Beautify navigation

1. Let's take a look at the final effect after beautification

The final effect of our beautification is shown in the figure above. We can easily beautify the interface by using Windows Terminal. Small partners can also configure parameters, font, background and theme color according to their own needs. Let's talk about the specific configuration process below

2. Install Windows Terminal

In the original CMD interface, is it familiar to see the following picture? It suddenly comes to my mind????

This software allows us to easily optimize the original CMD interface, which is suitable for shell users such as command line tools and command prompt, PowerShell and WSL. In the Microsoft Strore mall provided with windows, you can download it directly by searching windows terminal

3. Install PowerShell tools

Posh Git is a PowerShell script inherited from git, and oh my posh can provide theme function for PowerShell prompt. These two tools allow us to better configure and optimize topics

Use the PowerShell installer command as follows

Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser

4. Enter the official website of Windows terminal and start beautifying our terminal

As we all know, when we learn a new framework software, the best way to learn is to open their official website, Windows terminal Official documents.

After opening the official website, we can see the corresponding usage and introduction. Here we can find the configuration and some related attribute descriptions we need. If there are favorite themes or fonts, we can directly copy them on the official website and use them by ourselves????

5. Support and download of relevant fonts

When configuring related attributes, we will use some fonts. These fonts can be downloaded from Github, and then dragged and dropped to the local font library for installation, so as to ensure that the fonts can be displayed normally when we modify the theme. Here is a demonstration of a font download method. For example, we need to use Fira_Code font, we can go there Download address After downloading, drag the decompression package into the font installation interface for installation.

6. Key part: configuration setting.json file

After we download Windows Terminal, we can click the settings in the column to find the corresponding configuration file setting.json file

We can copy and configure some related topics directly from the official website and paste them into our own configuration.

My own configuration is as follows. My friends can refer to it

    "$schema": "",
    "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    "copyOnSelect": false,
    "copyFormatting": false,
          "fontFace": "Fira Code", // oh-my-posh 
          "backgroundImage": "C:\\Users\\MI\\Pictures\\Saved Pictures\\wallhaven-pko8lm.jpg", 
          "backgroundImageOpacity": 0.5, 
          "colorScheme" : "Campbell", 
          "acrylicOpacity": 0.7,
                // Make changes here to the powershell.exe profile.
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Big data Zen",
                "commandline": "powershell.exe",
                "hidden": false
                // Make changes here to the cmd.exe profile.
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "Little Zen's big data Road",
                "commandline": "cmd.exe",
                "hidden": false
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
 "schemes": [
    "name" : "Campbell",
    "cursorColor": "#FFFFFF",
    "selectionBackground": "#FFFFFF",
    "background" : "#0C0C0C",
    "foreground" : "#CCCCCC",
    "black" : "#0C0C0C",
    "blue" : "#0037DA",
    "cyan" : "#3A96DD",
    "green" : "#13A10E",
    "purple" : "#881798",
    "red" : "#C50F1F",
    "white" : "#CCCCCC",
    "yellow" : "#C19C00",
    "brightBlack" : "#767676",
    "brightBlue" : "#3B78FF",
    "brightCyan" : "#61D6D6",
    "brightGreen" : "#16C60C",
    "brightPurple" : "#B4009E",
    "brightRed" : "#E74856",
    "brightWhite" : "#F2F2F2",
    "brightYellow" : "#F9F1A5"
        { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
        { "command": "paste", "keys": "ctrl+v" },
        { "command": "find", "keys": "ctrl+shift+f" },
        { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }

Interpretation of relevant parameters

"backgroundImage": background image, which can be modified according to the image path of your computer

"colorScheme": color theme, which is modified according to the name in the schemes list

"fontFace": font setting. You can download the corresponding font for replacement

7. Summary

Here, our basic configuration has been modified. More configuration schemes and colors can be modified by partners according to their own needs with reference to the official documents. A good-looking terminal can also bring you a better work experience.

Posted on Mon, 22 Nov 2021 14:26:57 -0500 by SieRobin