Add git in windows Terminal

First open the windows Terminal, the first step is to click on the small label down from the top, and the second step is to select the settings option. Enter the configuration file of settings.json.

Insert picture description here

These are the three command line items that have been officially configured, but there is no git yet, so we have to add the configuration information of git by ourselves so that git-bash can use windows Terminal.

Insert picture description here

The configuration information of these fields exists in the type of object, so the same is true for git, just add the configuration object information of git after Azure or a certain configuration information. Next, I will explain each item of my configuration.

Insert picture description here

Configuration information:

  1. "Commandline": "command line path"
    // Here I use bash.exe in the bin directory of the Git folder, because if you use git-bash.exe in the Git root directory, it calls the old command line Window instead of windows Terminal.

  2. "Guid": "{1c4de342-38b7-51cf-b940-2309a097f585}"
    // Unique identifier, just give it one by yourself, don't repeat it with other command line items.

  3. "Icon": "E:\Git\mingw64\share\git\git-for-windows.ico"
    // This is the git icon, you can modify it yourself, just modify it to your favorite ico format icon.

  4. "Name": "Git Bash"
    // This is the name of the command line, you can also modify it yourself.

  5. "
    BackgroundImage ": "C:\TerminalPic\git.png" // This is a background image, you can modify it yourself. As shown in the figure below, I use gihub's image as a background image.

  6. "
    BackgroundImageOpacity ": 0.3 // This is the transparency of the background. Decimals between 0-1 can be used. The lower the value, the more transparent it is.

  7. "UseAcrylic": true
    // This is whether to enable the acrylic background, which is the attribute that gives the background a blur and frosted glass texture. It must be turned on to adjust the transparency and blur of the background.

  8. "AcrylicOpacity": 0.7
    // This attribute will only take effect when the 7th point is true. This is to adjust the blur and transparency of the background.

My configuration information:

 {
    
    
    "commandline" : "E:\\Git\\bin\\bash.exe",
    "guid" : "{1c4de342-38b7-51cf-b940-2309a097f585}",
    "icon" : "E:\\Git\\mingw64\\share\\git\\git-for-windows.ico",
    "name" : "Git Bash",
    "backgroundImage": "C:\\TerminalPic\\git.png",
    "backgroundImageOpacity" : 0.3,
    "useAcrylic": true,
    "acrylicOpacity": 0.7
 }

Placement notes:

Each configuration information must end with a comma, but the last item cannot have a comma, otherwise an error will occur and the configuration information cannot be saved.

Effect preview:

Insert picture description here

If you have any questions, you can leave a message or send a private message. Answer as much as I can!

Guess you like

Origin blog.csdn.net/michaelxuzhi___/article/details/106559172