Windows Terminal - settings.json

From Tayledras
Revision as of 15:16, 19 October 2020 by Tayledras (talk | contribs)
Jump to: navigation, search
Microsoft Windows Terminal with WSL2/Ubuntu

Reference

Related

Icon Files

These are the 16x16 Portable Network Graphics (PNG) files with alpha-blending backgrounds referenced by "icon": "C:/Shared/WSL2/fedora.png" for each WSL profile definition:

  • Icon-Fedora.png
  • Icon-Ubuntu.png
  • Icon-Redhat.png

TO USE: download files, truncate "icon-" prefix, reference saved location in profile.

Source

// This file was initially generated by Windows Terminal 1.3.2651.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": "{2c4de342-38b7-51cf-b940-2309a097f518}",

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

        // Launch Settings
        "initialCols": 120,
        "initialRows": 30,
        "launchMode": "default",
        "startOnUserLogin": true,
    
        // Selection
        "copyOnSelect": true,
        "copyFormatting": false,
        "wordDelimiters": " /\\()\"'-.,:;<>~!@#$%^&*|+=[]{}~?\u2502",
    
        // Tab UI
        "alwaysShowTabs": true,
        "showTabsInTitlebar": true,
        "showTerminalTitleInTitlebar": true,
        "tabWidthMode": "equal",
    
        // Miscellaneous
        "confirmCloseAllTabs": true,
        "theme": "dark",
        "useTabSwitcher": true,
        "rowsToScroll": "system",
        "snapToGridOnResize": true,
        "requestedTheme": "dark",
        
        // Copy/paste
        "multiLinePasteWarning": 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",
                "fontFace":"LiterationMono Nerd Font",
                "fontSize":14,
                "hidden": false,
                "acrylicOpacity":0.75,
                "closeOnExit":true,
                "colorScheme":"Campbell Powershell",
                "cursorColor":"#FFFFFF",
                "cursorShape":"bar",
                "fontFace":"LiterationMono Nerd Font",
                "fontSize":14,
                "historySize":9001,
                "padding":"0, 0, 0, 0",
                "snapOnInput":true,
                "startingDirectory":"%USERPROFILE%",
                "useAcrylic":true,
            },
            {
                // Make changes here to the cmd.exe profile.
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "Command Prompt",
                "commandline": "cmd.exe",
                "fontFace":"LiterationMono Nerd Font",
                "fontSize":14,
                "hidden": false
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure",
                "fontFace":"LiterationMono Nerd Font",
                "fontSize":14
            },
            {
                "guid": "{77945b40-a25e-4c5e-84a7-be69e91b96ed}",
                "hidden": false,
                "name": "Ubuntu (Template)",
                "source": "Windows.Terminal.Wsl",
                "acrylicOpacity":0.75,
                "closeOnExit":true,
                "colorScheme":"Campbell",
                "commandline":"wsl.exe -d Ubuntu",
                "cursorColor":"#FFFFFF",
                "cursorShape":"bar",
                "fontFace":"LiterationMono Nerd Font",
                "fontSize":14,
                "historySize":9001,
                "name":"Ubuntu",
                "padding":"0, 0, 0, 0",
                "snapOnInput":true,
                "startingDirectory":"%USERPROFILE%",
                "useAcrylic":true,
                "hidden": false,
            },
            {
                "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
                "hidden": false,
                "name": "Ubuntu",
                "source": "Windows.Terminal.Wsl",
                "acrylicOpacity":0.75,
                "closeOnExit":true,
                "colorScheme":"Campbell",
                "commandline":"wsl.exe -d Ubuntu",
                "cursorColor":"#FFFFFF",
                "cursorShape":"bar",
                "fontFace":"LiterationMono Nerd Font",
                "fontSize":14,
                "historySize":9001,
                "name":"Ubuntu",
                "antialiasingMode": "cleartype",
                "icon": "C:/Shared/WSL2/ubuntu.png",
                "padding":"0, 0, 0, 0",
                "snapOnInput":true,
                "startingDirectory":"%USERPROFILE%",
                "useAcrylic":true,
                "hidden": false,
            },
            {
                "guid": "{d3f31bee-5823-5ed8-8e04-f31ed54f2cd9}",
                "hidden": false,
                "name": "Fedora Remix",
                "source": "Windows.Terminal.Wsl",
                "acrylicOpacity":0.75,
                "closeOnExit":true,
                "colorScheme":"Solarized Dark",
                "commandline":"wsl.exe -d fedoraremix",
                "cursorColor":"#FFFFFF",
                "cursorShape":"bar",
                "fontFace":"LiterationMono Nerd Font",
                "fontSize":14,
                "historySize":9001,
                "name":"Fedora Remix",
                "antialiasingMode": "cleartype",
                "icon": "C:/Shared/WSL2/fedora.png",
                "padding":"0, 0, 0, 0",
                "snapOnInput":true,
                "startingDirectory":"%USERPROFILE%",
                "useAcrylic":true,
                "hidden": false,
            }
            //{
            //    "guid": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
            //    "hidden": false,
            //    "name": "Ubuntu",
            //    "source": "Windows.Terminal.Wsl",
            //}
        ]
    },

    // Add custom color schemes to this array.
    // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
 // Add custom color schemes to this array
 "schemes":
 [
     // A profile can override the following color scheme values:
     //   - "foreground"
     //   - "background"
     //   - "cursorColor"
     {
         "name": "Campbell",
         "foreground": "#CCCCCC",
         "background": "#0C0C0C",
         "cursorColor": "#FFFFFF",
         "black": "#0C0C0C",
         "red": "#C50F1F",
         "green": "#13A10E",
         "yellow": "#C19C00",
         "blue": "#0037DA",
         "purple": "#881798",
         "cyan": "#3A96DD",
         "white": "#CCCCCC",
         "brightBlack": "#767676",
         "brightRed": "#E74856",
         "brightGreen": "#16C60C",
         "brightYellow": "#F9F1A5",
         "brightBlue": "#3B78FF",
         "brightPurple": "#B4009E",
         "brightCyan": "#61D6D6",
         "brightWhite": "#F2F2F2"
     },
     {
         "name": "Campbell Powershell",
         "foreground": "#CCCCCC",
         "background": "#012456",
         "cursorColor": "#FFFFFF",
         "black": "#0C0C0C",
         "red": "#C50F1F",
         "green": "#13A10E",
         "yellow": "#C19C00",
         "blue": "#0037DA",
         "purple": "#881798",
         "cyan": "#3A96DD",
         "white": "#CCCCCC",
         "brightBlack": "#767676",
         "brightRed": "#E74856",
         "brightGreen": "#16C60C",
         "brightYellow": "#F9F1A5",
         "brightBlue": "#3B78FF",
         "brightPurple": "#B4009E",
         "brightCyan": "#61D6D6",
         "brightWhite": "#F2F2F2"
     },
     {
         "name": "Vintage",
         "foreground": "#C0C0C0",
         "background": "#000000",
         "cursorColor": "#FFFFFF",
         "black": "#000000",
         "red": "#800000",
         "green": "#008000",
         "yellow": "#808000",
         "blue": "#000080",
         "purple": "#800080",
         "cyan": "#008080",
         "white": "#C0C0C0",
         "brightBlack": "#808080",
         "brightRed": "#FF0000",
         "brightGreen": "#00FF00",
         "brightYellow": "#FFFF00",
         "brightBlue": "#0000FF",
         "brightPurple": "#FF00FF",
         "brightCyan": "#00FFFF",
         "brightWhite": "#FFFFFF"
     },
     {
         "name": "One Half Dark",
         "foreground": "#DCDFE4",
         "background": "#282C34",
         "cursorColor": "#FFFFFF",
         "black": "#282C34",
         "red": "#E06C75",
         "green": "#98C379",
         "yellow": "#E5C07B",
         "blue": "#61AFEF",
         "purple": "#C678DD",
         "cyan": "#56B6C2",
         "white": "#DCDFE4",
         "brightBlack": "#5A6374",
         "brightRed": "#E06C75",
         "brightGreen": "#98C379",
         "brightYellow": "#E5C07B",
         "brightBlue": "#61AFEF",
         "brightPurple": "#C678DD",
         "brightCyan": "#56B6C2",
         "brightWhite": "#DCDFE4"
     },
     {
         "name": "One Half Light",
         "foreground": "#383A42",
         "background": "#FAFAFA",
         "cursorColor": "#4F525D",
         "black": "#383A42",
         "red": "#E45649",
         "green": "#50A14F",
         "yellow": "#C18301",
         "blue": "#0184BC",
         "purple": "#A626A4",
         "cyan": "#0997B3",
         "white": "#FAFAFA",
         "brightBlack": "#4F525D",
         "brightRed": "#DF6C75",
         "brightGreen": "#98C379",
         "brightYellow": "#E4C07A",
         "brightBlue": "#61AFEF",
         "brightPurple": "#C577DD",
         "brightCyan": "#56B5C1",
         "brightWhite": "#FFFFFF"
     },
     {
         "name": "Solarized Dark",
         "foreground": "#839496",
         "background": "#002B36",
         "cursorColor": "#FFFFFF",
         "black": "#073642",
         "red": "#DC322F",
         "green": "#859900",
         "yellow": "#B58900",
         "blue": "#268BD2",
         "purple": "#D33682",
         "cyan": "#2AA198",
         "white": "#EEE8D5",
         "brightBlack": "#002B36",
         "brightRed": "#CB4B16",
         "brightGreen": "#586E75",
         "brightYellow": "#657B83",
         "brightBlue": "#839496",
         "brightPurple": "#6C71C4",
         "brightCyan": "#93A1A1",
         "brightWhite": "#FDF6E3"
     },
     {
         "name": "Solarized Light",
         "foreground": "#657B83",
         "background": "#FDF6E3",
         "cursorColor": "#002B36",
         "black": "#073642",
         "red": "#DC322F",
         "green": "#859900",
         "yellow": "#B58900",
         "blue": "#268BD2",
         "purple": "#D33682",
         "cyan": "#2AA198",
         "white": "#EEE8D5",
         "brightBlack": "#002B36",
         "brightRed": "#CB4B16",
         "brightGreen": "#586E75",
         "brightYellow": "#657B83",
         "brightBlue": "#839496",
         "brightPurple": "#6C71C4",
         "brightCyan": "#93A1A1",
         "brightWhite": "#FDF6E3"
     },
     {
         "name": "Tango Dark",
         "foreground": "#D3D7CF",
         "background": "#000000",
         "cursorColor": "#FFFFFF",
         "black": "#000000",
         "red": "#CC0000",
         "green": "#4E9A06",
         "yellow": "#C4A000",
         "blue": "#3465A4",
         "purple": "#75507B",
         "cyan": "#06989A",
         "white": "#D3D7CF",
         "brightBlack": "#555753",
         "brightRed": "#EF2929",
         "brightGreen": "#8AE234",
         "brightYellow": "#FCE94F",
         "brightBlue": "#729FCF",
         "brightPurple": "#AD7FA8",
         "brightCyan": "#34E2E2",
         "brightWhite": "#EEEEEC"
     },
     {
         "name": "Tango Light",
         "foreground": "#555753",
         "background": "#FFFFFF",
         "cursorColor": "#000000",
         "black": "#000000",
         "red": "#CC0000",
         "green": "#4E9A06",
         "yellow": "#C4A000",
         "blue": "#3465A4",
         "purple": "#75507B",
         "cyan": "#06989A",
         "white": "#D3D7CF",
         "brightBlack": "#555753",
         "brightRed": "#EF2929",
         "brightGreen": "#8AE234",
         "brightYellow": "#FCE94F",
         "brightBlue": "#729FCF",
         "brightPurple": "#AD7FA8",
         "brightCyan": "#34E2E2",
         "brightWhite": "#EEEEEC"
     }
 ],
 // Add any keybinding overrides to this array.
 // To unbind a default keybinding, set the command to "unbound"
 "keybindings":
 [
     // Application-level Keys
     { "command": "closeWindow", "keys": "alt+f4" },
     { "command": "toggleFullscreen", "keys": "alt+enter" },
     { "command": "toggleFullscreen", "keys": "f11" },
     { "command": "openNewTabDropdown", "keys": "ctrl+shift+space" },
     { "command": "openSettings", "keys": "ctrl+," },
     { "command": "find", "keys": "ctrl+shift+f" },

     // Tab Management
     // "command": "closeTab" is unbound by default.
     //   The closeTab command closes a tab without confirmation, even if it has multiple panes.
     // { "command": "closeTab", "keys": "ctrl+w" },
     { "command": "newTab", "keys": "ctrl+shift+t" },
     { "command": { "action": "newTab", "index": 0 }, "keys": "ctrl+shift+1" },
     { "command": { "action": "newTab", "index": 1 }, "keys": "ctrl+shift+2" },
     { "command": { "action": "newTab", "index": 2 }, "keys": "ctrl+shift+3" },
     { "command": { "action": "newTab", "index": 3 }, "keys": "ctrl+shift+4" },
     { "command": { "action": "newTab", "index": 4 }, "keys": "ctrl+shift+5" },
     { "command": { "action": "newTab", "index": 5 }, "keys": "ctrl+shift+6" },
     { "command": { "action": "newTab", "index": 6 }, "keys": "ctrl+shift+7" },
     { "command": { "action": "newTab", "index": 7 }, "keys": "ctrl+shift+8" },
     { "command": { "action": "newTab", "index": 8 }, "keys": "ctrl+shift+9" },
     { "command": "duplicateTab", "keys": "ctrl+shift+d" },
     { "command": "nextTab", "keys": "ctrl+tab" },
     { "command": "prevTab", "keys": "ctrl+shift+tab" },
     { "command": { "action": "switchToTab", "index": 0 }, "keys": "ctrl+alt+1" },
     { "command": { "action": "switchToTab", "index": 1 }, "keys": "ctrl+alt+2" },
     { "command": { "action": "switchToTab", "index": 2 }, "keys": "ctrl+alt+3" },
     { "command": { "action": "switchToTab", "index": 3 }, "keys": "ctrl+alt+4" },
     { "command": { "action": "switchToTab", "index": 4 }, "keys": "ctrl+alt+5" },
     { "command": { "action": "switchToTab", "index": 5 }, "keys": "ctrl+alt+6" },
     { "command": { "action": "switchToTab", "index": 6 }, "keys": "ctrl+alt+7" },
     { "command": { "action": "switchToTab", "index": 7 }, "keys": "ctrl+alt+8" },
     { "command": { "action": "switchToTab", "index": 8 }, "keys": "ctrl+alt+9" },

     // Pane Management
     { "command": "closePane", "keys": "ctrl+shift+w" },
     { "command": { "action": "splitPane", "split": "horizontal" }, "keys": "alt+shift+-" },
     { "command": { "action": "splitPane", "split": "vertical" }, "keys": "alt+shift+plus" },
     { "command": { "action": "resizePane", "direction": "down" }, "keys": "alt+shift+down" },
     { "command": { "action": "resizePane", "direction": "left" }, "keys": "alt+shift+left" },
     { "command": { "action": "resizePane", "direction": "right" }, "keys": "alt+shift+right" },
     { "command": { "action": "resizePane", "direction": "up" }, "keys": "alt+shift+up" },
     { "command": { "action": "moveFocus", "direction": "down" }, "keys": "alt+down" },
     { "command": { "action": "moveFocus", "direction": "left" }, "keys": "alt+left" },
     { "command": { "action": "moveFocus", "direction": "right" }, "keys": "alt+right" },
     { "command": { "action": "moveFocus", "direction": "up" }, "keys": "alt+up" },

     // Clipboard Integration
     { "command": { "action": "copy", "singleLine": false }, "keys": "ctrl+shift+c" },
     { "command": { "action": "copy", "singleLine": false }, "keys": "ctrl+insert" },
     { "command": "paste", "keys": "ctrl+shift+v" },
     { "command": "paste", "keys": "shift+insert" },

     // Scrollback
     { "command": "scrollDown", "keys": "ctrl+shift+down" },
     { "command": "scrollDownPage", "keys": "ctrl+shift+pgdn" },
     { "command": "scrollUp", "keys": "ctrl+shift+up" },
     { "command": "scrollUpPage", "keys": "ctrl+shift+pgup" },

     // Visual Adjustments
     { "command": { "action": "adjustFontSize", "delta": 1 }, "keys": "ctrl+=" },
     { "command": { "action": "adjustFontSize", "delta": -1 }, "keys": "ctrl+-" },
     { "command": "resetFontSize", "keys": "ctrl+0" }
],

    // 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" }
    ]
}