Windows Terminal 个人设置

看到网上有大佬把git bash和云服务器以及anaconda也弄上去了,我也弄了一下(原本只想弄连接云服务器的,顺手就弄成这样了)
看着别人的博客,按照文档改配置就行
官方文档
Windows Terminal 个人设置
Windows Terminal 个人设置

个人配置

// This file was initially generated by Windows Terminal 1.4.3243.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.

// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
    "$schema": "https://aka.ms/terminal-profiles-schema",

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

    "colorScheme": "One Half Dark",

    // You can add more global application settings here.
    // To learn more about global settings, visit https://aka.ms/terminal-global-settings

    // If enabled, selections are automatically copied to your clipboard.
    "copyOnSelect": false,

    // If enabled, formatted data is also copied to your clipboard
    "copyFormatting": false,

    // A profile specifies a command to execute paired with information about how it should look and feel.
    // Each one of them will appear in the 'New Tab' dropdown,
    //   and can be invoked from the commandline with `wt.exe -p xxx`
    // To learn more about profiles, visit https://aka.ms/terminal-profile-settings
    "profiles":
    {
        "defaults":
        {
            // Put settings here that you want to apply to all profiles.
        },
        "list":
        [
            {
                // Make changes here to the powershell.exe profile.
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Windows PowerShell",
                "commandline": "powershell.exe",
                "hidden": false,
                "background": "#a8edea",
                "backgroundImage":"背景图片地址",
                "backgroundImageOpacity": 1.0

            },
            {
                "guid": "{0f7bbf4d-55cf-4692-80e5-9f7bc8658232}",
                "hidden": false,
                "name": "Aliyun",
                "commandline": "ssh -p 22 root@你的云服务器公网ip",
                "tabTitle": "Aliyun",
                "icon" : "图标地址",/*ICO图标*/
                "backgroundImage":"背景图片地址",
                "backgroundImageOpacity": 1,
                "cursorColor": "#FFFFFF",
                "fontFace": "Cascadia Code"
            },
            {
                // Make changes here to the cmd.exe profile.
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "Command Prompt",
                "commandline": "cmd.exe",
                "hidden": false,
                "background": "#a8edea",
                "backgroundImage":"背景图片地址",
                "backgroundImageOpacity": 1.0
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure",
                "background": "#a8edea",
                "backgroundImage":"背景图片地址",
                "backgroundImageOpacity": 1.0
            },
            {
                // Make changes here to the Anaconda Prompt profile 关于anaconda的配置
                "guid": "{FCAD2812-51E4-4E55-96AF-2F2B75628FE0}",
                "name": "anaconda prompt",
                "commandline": "%windir%\\System32\\cmd.exe /K D:\\anaconda3\\Scripts\\activate.bat",
                //后面那个你要自己改一下路径
                "hidden": false,

                "tabTitle" : "Anaconda Prompt",/*名称*/
                "foreground" : "#DCDCDC",/*字体颜色*/
                "icon" : "D:\\anaconda3/Menu/anaconda-navigator.ico",/*ICO图标,你也要自己改一下*/
                "backgroundImage" : "背景图片地址",/*终端背景图*/
                "acrylicOpacity" : 0.75,
                "backgroundImageOpacity" : 1,
                "backgroundImageStretchMode" : "fill",
                "closeOnExit" : true,
                "colorScheme" : "Campbell",
                "cursorColor" : "#FFFFFF",
                "cursorShape" : "bar",
                "fontFace" : "Consolas",
                "fontSize" : 11,
                "historySize" : 9001,
                "padding" : "0, 0, 0, 0",
                "snapOnInput" : true,
                "startingDirectory" : "%USERPROFILE%",
                "useAcrylic" : true
            },
            {
                // Make changes here to the Git Bash profile  关于Git bash的配置
                "guid": "{4B25BFD9-4962-49AE-8512-BBD336462BAB}",
                "name": "Git Bash",
                "commandline": "D:\\Tools\\Git\\bin\\bash.exe",
                //改路径
                "hidden": false,

                "tabTitle" : "Git Bash",/*名称*/
                "foreground" : "#DCDCDC",/*字体颜色*/
                "icon" : "图标地址",/*ICO图标*/
                "backgroundImage" : "背景地址",/*终端背景图*/
                "acrylicOpacity" : 0.75,
                "backgroundImageOpacity" : 1,
                "backgroundImageStretchMode" : "fill",
                "closeOnExit" : true,
                "colorScheme" : "Campbell",
                "cursorColor" : "#FFFFFF",
                "cursorShape" : "bar",
                "fontFace" : "Consolas",
                "fontSize" : 11,
                "historySize" : 9001,
                "padding" : "0, 0, 0, 0",
                "snapOnInput" : true,
                "startingDirectory" : "%USERPROFILE%",
                "useAcrylic" : true
            }
        ]
    },

    // Add custom color schemes to this array.
    // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
    "schemes": [],

    // Add custom actions and keybindings to this array.
    // To unbind a key combination from your defaults.json, set the command to "unbound".
    // To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
    "actions":
    [
        // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
        // These two lines additionally bind them to Ctrl+C and Ctrl+V.
        // To learn more about selection, visit https://aka.ms/terminal-selection
        { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
        { "command": "paste", "keys": "ctrl+v" },

        // Press Ctrl+Shift+F to open the search box
        { "command": "find", "keys": "ctrl+shift+f" },

        // Press Alt+Shift+D to open a new pane.
        // - "split": "auto" makes this pane open in the direction that provides the most surface area.
        // - "splitMode": "duplicate" makes the new pane use the focused pane's profile.
        // To learn more about panes, visit https://aka.ms/terminal-panes
        { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }
    ]
}

上一篇:powershell(或者windows terminal)中使用git


下一篇:【杂谈】Windows安装Fluent Terminal