Skip to content

Instantly share code, notes, and snippets.

@hsupu
Last active March 28, 2022 09:09
Show Gist options
  • Save hsupu/e672fc6859f1139482e98301ea755261 to your computer and use it in GitHub Desktop.
Save hsupu/e672fc6859f1139482e98301ea755261 to your computer and use it in GitHub Desktop.
Windows Terminal settings.json
// sync at 220328
//
// Tips
// Go "Command Palette" via "Ctrl+Shift+P" or see https://aka.ms/terminal-documentation
// Hold "Alt" and click "Settings" to open defaults.json
// Want to send ANSI Escape Sequences?
// CSI https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797
// SS3 https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
//
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
// Global Settings
// https://aka.ms/terminal-global-settings
// OS-interop
// https://docs.microsoft.com/en-us/windows/terminal/customize-settings/interaction
//
"startOnUserLogin": false,
"copyOnSelect": false,
// If enabled, formatted data is also copied to your clipboard
"copyFormatting": "none",
// Remove trailing white-space in rectangular selection 矩形选区时清空每行尾部空格
"trimBlockSelection": true,
// GUI
//
"theme": "system",
"launchMode": "default",
"alwaysOnTop": false,
"showTerminalTitleInTitlebar": false,
"disableAnimations": true,
// GUI Tabs
//
"tabWidthMode": "equal",
"tabSwitcherMode": "inOrder",
"alwaysShowTabs": true,
"showTabsInTitlebar": true,
"confirmCloseAllTabs": true,
// Profile Settings
// https://docs.microsoft.com/en-us/windows/terminal/customize-settings/profile-general
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"profiles":
{
"defaults":
{
"colorScheme": "Campbell",
"cursorShape": "bar",
"font":
{
"face": "Iosevka PU-5",
"size": 12,
"weight": "normal"
},
"scrollbarState": "visible",
"startingDirectory": "%USERPROFILE%"
},
"list":
[
{
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"hidden": true,
"name": "Command Prompt"
},
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"hidden": true,
"name": "Windows PowerShell"
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": true,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
},
{
"guid": "{e01d0d46-112a-518e-8492-cc8a00d36712}",
"hidden": true,
"name": "cmd for VS 2022 Enterprise",
"source": "Windows.Terminal.VisualStudio"
},
{
"guid": "{94c94f69-f7a9-5065-9368-56efcd5bd9e6}",
"hidden": true,
"name": "pwsh for VS 2022 Enterprise",
"source": "Windows.Terminal.VisualStudio"
},
{
"guid": "{bea72522-aa66-561e-8856-c093e3c56b7a}",
"hidden": true,
"name": "cmd for VS 2022 Enterprise Preview",
"source": "Windows.Terminal.VisualStudio"
},
{
"guid": "{f077083f-c238-542f-845c-69a54e079cf9}",
"hidden": true,
"name": "pwsh for VS 2022 Enterprise Preview",
"source": "Windows.Terminal.VisualStudio"
},
{
"guid": "{2b270af0-ccfc-56fd-87c1-a35fe0f4f15c}",
"hidden": true,
"name": "cmd for VS 2019 Enterprise",
"source": "Windows.Terminal.VisualStudio"
},
{
"guid": "{39772c55-eaed-52f9-a01b-0fb566fcc332}",
"hidden": true,
"name": "pwsh for VS 2019 Enterprise",
"source": "Windows.Terminal.VisualStudio"
},
{
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"name": "PowerShell",
"source": "Windows.Terminal.PowershellCore",
"startingDirectory": "C:\\my"
},
{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl",
"startingDirectory": "/home/xp"
},
{
"guid": "{58ad8b0c-3ef8-5f4d-bc6f-13e4c00f2530}",
"hidden": false,
"name": "Debian",
"source": "Windows.Terminal.Wsl",
"startingDirectory": "/home/xp"
},
{
"closeOnExit": "graceful",
"commandline": "powershell.exe -NoLogo -NoProfile -f C:\\my\\bin\\msys2.ps1",
"guid": "{e7d1a433-ac30-4fee-9482-c4a6877a0b02}",
"hidden": false,
"name": "msys2"
}
]
},
// Color Schemes
// https://docs.microsoft.com/en-us/windows/terminal/customize-settings/color-schemes
"schemes": [
{
"background": "#0C0C0C",
"black": "#0C0C0C",
"blue": "#0037DA",
"brightBlack": "#767676",
"brightBlue": "#3B78FF",
"brightCyan": "#61D6D6",
"brightGreen": "#16C60C",
"brightPurple": "#B4009E",
"brightRed": "#E74856",
"brightWhite": "#F2F2F2",
"brightYellow": "#F9F1A5",
"cursorColor": "#FFFFFF",
"cyan": "#3A96DD",
"foreground": "#CCCCCC",
"green": "#13A10E",
"name": "Campbell",
"purple": "#881798",
"red": "#C50F1F",
"selectionBackground": "#FFFFFF",
"white": "#CCCCCC",
"yellow": "#C19C00"
},
{
"background": "#012456",
"black": "#0C0C0C",
"blue": "#0037DA",
"brightBlack": "#767676",
"brightBlue": "#3B78FF",
"brightCyan": "#61D6D6",
"brightGreen": "#16C60C",
"brightPurple": "#B4009E",
"brightRed": "#E74856",
"brightWhite": "#F2F2F2",
"brightYellow": "#F9F1A5",
"cursorColor": "#FFFFFF",
"cyan": "#3A96DD",
"foreground": "#CCCCCC",
"green": "#13A10E",
"name": "Campbell Powershell",
"purple": "#881798",
"red": "#C50F1F",
"selectionBackground": "#FFFFFF",
"white": "#CCCCCC",
"yellow": "#C19C00"
},
{
"background": "#1C1E26",
"black": "#16161C",
"blue": "#26BBD9",
"brightBlack": "#000000",
"brightBlue": "#3FC4DE",
"brightCyan": "#6BE4E6",
"brightGreen": "#3FDAA4",
"brightPurple": "#B877DB",
"brightRed": "#EC6A88",
"brightWhite": "#FFFFFF",
"brightYellow": "#FBC3A7",
"cursorColor": "#FFFFFF",
"cyan": "#59E1E3",
"foreground": "#D5D8DA",
"green": "#29D398",
"name": "Horizon",
"purple": "#B877DB",
"red": "#E95678",
"selectionBackground": "#FFFFFF",
"white": "#FFFFFF",
"yellow": "#FAB795"
},
{
"background": "#282C34",
"black": "#282C34",
"blue": "#61AFEF",
"brightBlack": "#5A6374",
"brightBlue": "#61AFEF",
"brightCyan": "#56B6C2",
"brightGreen": "#98C379",
"brightPurple": "#C678DD",
"brightRed": "#E06C75",
"brightWhite": "#DCDFE4",
"brightYellow": "#E5C07B",
"cursorColor": "#FFFFFF",
"cyan": "#56B6C2",
"foreground": "#DCDFE4",
"green": "#98C379",
"name": "One Half Dark",
"purple": "#C678DD",
"red": "#E06C75",
"selectionBackground": "#FFFFFF",
"white": "#DCDFE4",
"yellow": "#E5C07B"
},
{
"background": "#FAFAFA",
"black": "#383A42",
"blue": "#0184BC",
"brightBlack": "#4F525D",
"brightBlue": "#61AFEF",
"brightCyan": "#56B5C1",
"brightGreen": "#98C379",
"brightPurple": "#C577DD",
"brightRed": "#DF6C75",
"brightWhite": "#FFFFFF",
"brightYellow": "#E4C07A",
"cursorColor": "#4F525D",
"cyan": "#0997B3",
"foreground": "#383A42",
"green": "#50A14F",
"name": "One Half Light",
"purple": "#A626A4",
"red": "#E45649",
"selectionBackground": "#FFFFFF",
"white": "#FAFAFA",
"yellow": "#C18301"
},
{
"background": "#002B36",
"black": "#002B36",
"blue": "#268BD2",
"brightBlack": "#073642",
"brightBlue": "#839496",
"brightCyan": "#93A1A1",
"brightGreen": "#586E75",
"brightPurple": "#6C71C4",
"brightRed": "#CB4B16",
"brightWhite": "#FDF6E3",
"brightYellow": "#657B83",
"cursorColor": "#FFFFFF",
"cyan": "#2AA198",
"foreground": "#839496",
"green": "#859900",
"name": "Solarized Dark",
"purple": "#D33682",
"red": "#DC322F",
"selectionBackground": "#FFFFFF",
"white": "#EEE8D5",
"yellow": "#B58900"
},
{
"background": "#FDF6E3",
"black": "#002B36",
"blue": "#268BD2",
"brightBlack": "#073642",
"brightBlue": "#839496",
"brightCyan": "#93A1A1",
"brightGreen": "#586E75",
"brightPurple": "#6C71C4",
"brightRed": "#CB4B16",
"brightWhite": "#FDF6E3",
"brightYellow": "#657B83",
"cursorColor": "#002B36",
"cyan": "#2AA198",
"foreground": "#657B83",
"green": "#859900",
"name": "Solarized Light",
"purple": "#D33682",
"red": "#DC322F",
"selectionBackground": "#FFFFFF",
"white": "#EEE8D5",
"yellow": "#B58900"
},
{
"background": "#000000",
"black": "#000000",
"blue": "#3465A4",
"brightBlack": "#555753",
"brightBlue": "#729FCF",
"brightCyan": "#34E2E2",
"brightGreen": "#8AE234",
"brightPurple": "#AD7FA8",
"brightRed": "#EF2929",
"brightWhite": "#EEEEEC",
"brightYellow": "#FCE94F",
"cursorColor": "#FFFFFF",
"cyan": "#06989A",
"foreground": "#D3D7CF",
"green": "#4E9A06",
"name": "Tango Dark",
"purple": "#75507B",
"red": "#CC0000",
"selectionBackground": "#FFFFFF",
"white": "#D3D7CF",
"yellow": "#C4A000"
},
{
"background": "#FFFFFF",
"black": "#000000",
"blue": "#3465A4",
"brightBlack": "#555753",
"brightBlue": "#729FCF",
"brightCyan": "#34E2E2",
"brightGreen": "#8AE234",
"brightPurple": "#AD7FA8",
"brightRed": "#EF2929",
"brightWhite": "#EEEEEC",
"brightYellow": "#FCE94F",
"cursorColor": "#000000",
"cyan": "#06989A",
"foreground": "#555753",
"green": "#4E9A06",
"name": "Tango Light",
"purple": "#75507B",
"red": "#CC0000",
"selectionBackground": "#FFFFFF",
"white": "#D3D7CF",
"yellow": "#C4A000"
},
{
"background": "#000000",
"black": "#000000",
"blue": "#000080",
"brightBlack": "#808080",
"brightBlue": "#0000FF",
"brightCyan": "#00FFFF",
"brightGreen": "#00FF00",
"brightPurple": "#FF00FF",
"brightRed": "#FF0000",
"brightWhite": "#FFFFFF",
"brightYellow": "#FFFF00",
"cursorColor": "#FFFFFF",
"cyan": "#008080",
"foreground": "#C0C0C0",
"green": "#008000",
"name": "Vintage",
"purple": "#800080",
"red": "#800000",
"selectionBackground": "#FFFFFF",
"white": "#C0C0C0",
"yellow": "#808000"
}
],
// Key Bindings
// https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions
"actions":
[
///
/// Unbound all defaults if unused
/// unbound begin
///
// Application-level Keys
// {"command":"unbound","keys":"alt+f4"}, // "closeWindow"
{"command":"unbound","keys":"alt+enter"}, // "toggleFullscreen"
// {"command":"unbound","keys":"f11"}, // "toggleFullscreen"
{"command":"unbound","keys":"ctrl+shift+space"}, // "openNewTabDropdown"
{"command":"unbound","keys":"ctrl+,"}, // {"action":"openSettings","target":"settingsUI"}
{"command":"unbound","keys":"ctrl+shift+,"}, // {"action":"openSettings","target":"settingsFile"}
{"command":"unbound","keys":"ctrl+alt+,"}, // {"action":"openSettings","target":"defaultsFile"}
// {"command":"unbound","keys":"ctrl+shift+f"}, // "find"
// {"command":"unbound","keys":"ctrl+shift+p"}, // "commandPalette"
{"command":"unbound","keys":"win+sc(41)"}, // "quakeMode"
// Tab Management
{"command":"unbound","keys":"ctrl+shift+t"}, // "newTab"
{"command":"unbound","keys":"ctrl+shift+n"}, // "newWindow"
{"command":"unbound","keys":"ctrl+shift+1"}, // {"action":"newTab","index":0}
{"command":"unbound","keys":"ctrl+shift+2"}, // {"action":"newTab","index":1}
{"command":"unbound","keys":"ctrl+shift+3"}, // {"action":"newTab","index":2}
{"command":"unbound","keys":"ctrl+shift+4"}, // {"action":"newTab","index":3}
{"command":"unbound","keys":"ctrl+shift+5"}, // {"action":"newTab","index":4}
{"command":"unbound","keys":"ctrl+shift+6"}, // {"action":"newTab","index":5}
{"command":"unbound","keys":"ctrl+shift+7"}, // {"action":"newTab","index":6}
{"command":"unbound","keys":"ctrl+shift+8"}, // {"action":"newTab","index":7}
{"command":"unbound","keys":"ctrl+shift+9"}, // {"action":"newTab","index":8}
{"command":"unbound","keys":"ctrl+shift+d"}, // "duplicateTab"
{"command":"unbound","keys":"ctrl+tab"}, // "nextTab"
{"command":"unbound","keys":"ctrl+shift+tab"}, // "prevTab"
{"command":"unbound","keys":"ctrl+alt+1"}, // {"action":"switchToTab","index":0}
{"command":"unbound","keys":"ctrl+alt+2"}, // {"action":"switchToTab","index":1}
{"command":"unbound","keys":"ctrl+alt+3"}, // {"action":"switchToTab","index":2}
{"command":"unbound","keys":"ctrl+alt+4"}, // {"action":"switchToTab","index":3}
{"command":"unbound","keys":"ctrl+alt+5"}, // {"action":"switchToTab","index":4}
{"command":"unbound","keys":"ctrl+alt+6"}, // {"action":"switchToTab","index":5}
{"command":"unbound","keys":"ctrl+alt+7"}, // {"action":"switchToTab","index":6}
{"command":"unbound","keys":"ctrl+alt+8"}, // {"action":"switchToTab","index":7}
{"command":"unbound","keys":"ctrl+alt+9"}, // {"action":"switchToTab","index":4294967295}
// Pane Management
{"command":"unbound","keys":"ctrl+shift+w"}, // "closePane"
{"command":"unbound","keys":"alt+shift+-"}, // {"action":"splitPane","split":"horizontal"}
{"command":"unbound","keys":"alt+shift+plus"}, // {"action":"splitPane","split":"vertical"}
{"command":"unbound","keys":"alt+shift+down"}, // {"action":"resizePane","direction":"down"}
{"command":"unbound","keys":"alt+shift+left"}, // {"action":"resizePane","direction":"left"}
{"command":"unbound","keys":"alt+shift+right"}, // {"action":"resizePane","direction":"right"}
{"command":"unbound","keys":"alt+shift+up"}, // {"action":"resizePane","direction":"up"}
{"command":"unbound","keys":"alt+down"}, // {"action":"moveFocus","direction":"down"}
{"command":"unbound","keys":"alt+left"}, // {"action":"moveFocus","direction":"left"}
{"command":"unbound","keys":"alt+right"}, // {"action":"moveFocus","direction":"right"}
{"command":"unbound","keys":"alt+up"}, // {"action":"moveFocus","direction":"up"}
{"command":"unbound","keys":"ctrl+alt+left"}, // {"action":"moveFocus","direction":"previous"}
// Clipboard Integration
// {"command":"unbound","keys":"ctrl+shift+c"}, // {"action":"copy","singleLine":false}
// {"command":"unbound","keys":"ctrl+insert"}, // {"action":"copy","singleLine":false}
// {"command":"unbound","keys":"ctrl+shift+v"}, // "paste"
// {"command":"unbound","keys":"shift+insert"}, // "paste"
// Scrollback
// {"command":"unbound","keys":"ctrl+shift+down"}, // "scrollDown"
// {"command":"unbound","keys":"ctrl+shift+pgdn"}, // "scrollDownPage"
// {"command":"unbound","keys":"ctrl+shift+up"}, // "scrollUp"
// {"command":"unbound","keys":"ctrl+shift+pgup"}, // "scrollUpPage"
{"command":"unbound","keys":"ctrl+shift+home"}, // "scrollToTop"
{"command":"unbound","keys":"ctrl+shift+end"}, // "scrollToBottom"
// Visual Adjustments
{"command":"unbound","keys":"ctrl+plus"}, // {"action":"adjustFontSize","delta":1}
{"command":"unbound","keys":"ctrl+minus"}, // {"action":"adjustFontSize","delta":-1}
{"command":"unbound","keys":"ctrl+numpad_plus"}, // {"action":"adjustFontSize","delta":1}
{"command":"unbound","keys":"ctrl+numpad_minus"}, // {"action":"adjustFontSize","delta":-1}
{"command":"unbound","keys":"ctrl+0"}, // "resetFontSize"
// Other commands
///
/// unbound end
///
// { "command": { "action": "copy", "singleLine": false }, "keys": "ctrl+c" },
// { "command": "paste", "keys": "ctrl+v" },
// { "command": "find", "keys": "ctrl+f" },
// { "command": "scrollUp", "keys": "ctrl+up" },
// { "command": "scrollDown", "keys": "ctrl+down" },
// Leave pgup pgdn to shell
// { "command": "scrollUpPage", "keys": "pgup" },
// { "command": "scrollDownPage", "keys": "pgdn" },
// { "command": { "action": "sendInput", "input": "\u001b[5~"}, "keys": "shift+pgup" }, // CSI pgup
// { "command": { "action": "sendInput", "input": "\u001b[6~"}, "keys": "shift+pgdn" }, // CSI pgdn
// { "command": { "action": "sendInput", "input": "\u001bOH"}, "keys": "shift+home" }, // SS3 Home
// { "command": { "action": "sendInput", "input": "\u001bOF"}, "keys": "shift+end" }, // SS3 End
// { "command": "scrollUpPage", "keys": "ctrl+shift+up" },
// { "command": "scrollDownPage", "keys": "ctrl+shift+down" },
// { "command": { "action": "splitPane", "split": "horizontal", "splitMode": "duplicate" }, "keys": "alt+-" },
// { "command": { "action": "splitPane", "split": "vertical", "splitMode": "duplicate" }, "keys": "alt+\\" },
{ "command": "closePane", "keys": "ctrl+w" },
// { "command": { "action": "moveFocus", "direction": "previous" }, "keys": "alt+/" },
{ "command": "openNewTabDropdown", "keys": "ctrl+shift+t" },
{ "command": "tabSearch", "keys": "ctrl+tab" },
// { "command": "prevTab", "keys": "alt+[" },
// { "command": "nextTab", "keys": "alt+]" },
{ "command": { "action": "switchToTab", "index": 0 }, "keys": "ctrl+1" },
{ "command": { "action": "switchToTab", "index": 1 }, "keys": "ctrl+2" },
{ "command": { "action": "switchToTab", "index": 2 }, "keys": "ctrl+3" },
{ "command": { "action": "switchToTab", "index": 3 }, "keys": "ctrl+4" },
{ "command": { "action": "switchToTab", "index": 4 }, "keys": "ctrl+5" },
{ "command": { "action": "switchToTab", "index": 5 }, "keys": "ctrl+6" },
{ "command": { "action": "switchToTab", "index": 6 }, "keys": "ctrl+7" },
{ "command": { "action": "switchToTab", "index": 7 }, "keys": "ctrl+8" },
{ "command": { "action": "switchToTab", "index": 8 }, "keys": "ctrl+9" },
// Makes json happy
{}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment