Windows terminal integrated terminal + color matching to create a cool terminal, just for fun

Hits: 0

1. Download Windows terminal

Open the Microsoft store, search for Windows terminal, and start the download

Second, open the configuration file

  1. Open Windows terminal
  2. Click the arrow, then click Settings
  3. Click to open the json file
  4. Replace configuration file content

{
    "$schema": "https://aka.ms/terminal-profiles-schema",

    "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",


    "copyOnSelect": false,

    "copyFormatting": false,

    "profiles": {
        "defaults": {
            "colorScheme": "Solarized Dark Higher Contrast",
            "backgroundImageOpacity": 0.3,
            "backgroundImageStretchMode": "fill",
            "fontSize": 13
        },
        "list": [{
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Windows PowerShell",
                "commandline": "powershell.exe",
                "hidden": false
            },
    {
    "name": "Git-Bash",
                "commandline": "D:\\soft\\Git\\bin\\bash.exe",
    "icon": "D:\\soft\\Git\\mingw64\\share\\git\\git-for-windows.ico",
                "hidden": false
    },
            {
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "Command Prompt",
                "commandline": "cmd.exe",
                "hidden": false
            },
            {
                "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
                "hidden": false,
                "name": "Ubuntu",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            }
        ]
},


    "schemes": [{
            "name": "3024Night",
            "black": "#090300",
            "red": "#db2d20",
            "green": "#01a252",
            "yellow": "#fded02",
            "blue": "#01a0e4",
            "purple": "#a16a94",
            "cyan": "#b5e4f4",
            "white": "#a5a2a2",
            "brightBlack": "#5c5855",
            "brightRed": "#e8bbd0",
            "brightGreen": "#3a3432",
            "brightYellow": "#4a4543",
            "brightBlue": "#807d7c",
            "brightPurple": "#d6d5d4",
            "brightCyan": "#cdab53",
            "brightWhite": "#f7f7f7",
            "background": "#090300",
            "foreground": "#a5a2a2"
        },
        {
            "name": "AlienBlood",
            "black": "#112616",
            "red": "#7f2b27",
            "green": "#2f7e25",
            "yellow": "#717f24",
            "blue": "#2f6a7f",
            "purple": "#47587f",
            "cyan": "#327f77",
            "white": "#647d75",
            "brightBlack": "#3c4812",
            "brightRed": "#e08009",
            "brightGreen": "#18e000",
            "brightYellow": "#bde000",
            "brightBlue": "#00aae0",
            "brightPurple": "#0058e0",
            "brightCyan": "#00e0c4",
            "brightWhite": "#73fa91",
            "background": "#0f1610",
            "foreground": "#637d75"
        },{
        "name": "MonaLisa",
        "black": "#351b0e",
        "red": "#9b291c",
        "green": "#636232",
        "yellow": "#c36e28",
        "blue": "#515c5d",
        "purple": "#9b1d29",
        "cyan": "#588056",
        "white": "#f7d75c",
        "brightBlack": "#874228",
        "brightRed": "#ff4331",
        "brightGreen": "#b4b264",
        "brightYellow": "#ff9566",
        "brightBlue": "#9eb2b4",
        "brightPurple": "#ff5b6a",
        "brightCyan": "#8acd8f",
        "brightWhite": "#ffe598",
        "background": "#120b0d",
        "foreground": "#f7d66a"
      },{
      "name": "Solarized Dark Higher Contrast",
      "black": "#002831",
      "red": "#d11c24",
      "green": "#6cbe6c",
      "yellow": "#a57706",
      "blue": "#2176c7",
      "purple": "#c61c6f",
      "cyan": "#259286",
      "white": "#eae3cb",
      "brightBlack": "#006488",
      "brightRed": "#f5163b",
      "brightGreen": "#51ef84",
      "brightYellow": "#b27e28",
      "brightBlue": "#178ec8",
      "brightPurple": "#e24d8e",
      "brightCyan": "#00b39e",
      "brightWhite": "#fcf4dc",
      "background": "#001e27",
      "foreground": "#9cc2c3",
      "selectionBackground": "#003748",
      "cursorColor": "#f34b00"
    }
    ],
    "actions": [
        { "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" }
    ]
}

A brief description
colorScheme : is the theme name
backfroundImage : is the background image of the terminal
backgroundImageOpacity : transparency
fontSize : font size
There are many more that can be set by Baidu

defaults is the default setting, each terminal such as cmd terminal, ubantu terminal, gitBash terminal in the list list
shemes is the configuration scheme of the color theme, it is recommended that a website can have many themes, copy the code you want above, to the schemes Inside, pay attention to the punctuation
https://windowsterminalthemes.dev/
The network is slow today and it is not loaded

  1. Add a custom terminal
    . For example, if I want to add gitBash , there is a new addition
    on the json file just opened . We click on it . The command line is the exe file corresponding to the terminal you want to add. You can click Browse to view and so on to set the icon and name.

After the startup directory is set, your terminal can be opened at the specified place

  1. Results

Leave a Reply

Your email address will not be published.