Skip to content

Instantly share code, notes, and snippets.

@simshaun
Last active April 9, 2020 20:07
Show Gist options
  • Save simshaun/4a7f37ba091351ebcaae0ea3b30007e4 to your computer and use it in GitHub Desktop.
Save simshaun/4a7f37ba091351ebcaae0ea3b30007e4 to your computer and use it in GitHub Desktop.
Windows Terminal settings
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
//
// Fonts:
// https://github.com/microsoft/cascadia-code/releases
//
// NOTE: To theme PowerShell:
// https://lazyadmin.nl/powershell/customizing-windows-terminal
// https://www.hanselman.com/blog/HowToMakeAPrettyPromptInWindowsTerminalWithPowerlineNerdFontsCascadiaCodeWSLAndOhmyposh.aspx
// Install Cascadia Code PL font
// Run these commands:
// Install-Module posh-git -Scope CurrentUser
// Install-Module oh-my-posh -Scope CurrentUser
// Modify PowerShell profile (notepad $PROFILE) and add:
// Import-Module posh-git
// Import-Module oh-my-posh
// Set-Theme paradox
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"initialCols": 120,
"initialRows": 30,
"theme": "dark",
"snapToGridOnResize": true,
"profiles": [
{
"acrylicOpacity": 0.85,
"background": "#232524",
"closeOnExit": false,
"colorScheme": "VSCode",
"commandline": "powershell.exe",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Cascadia Code PL",
"fontSize": 10,
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"hidden": true,
"historySize": 9001,
"icon": "ms-appdata:///roaming/pwsh-32.png",
"name": "PowerShell",
"useAcrylic": true
},
{
"acrylicOpacity": 0.85,
"background": "#232524",
"closeOnExit": false,
"colorScheme": "VSCode",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Cascadia Code PL",
"fontSize": 10,
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"historySize": 9001,
"name": "PowerShell",
"source": "Windows.Terminal.PowershellCore",
"useAcrylic": true
},
{
// Make changes here to the cmd.exe profile
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"commandline": "cmd.exe",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Consolas",
"fontSize": 11,
"hidden": true,
"historySize": 9001,
"name": "cmd"
},
{
"acrylicOpacity": 0.85,
"startingDirectory": "\\\\wsl$\\Ubuntu-18.04\\home\\shaun",
"closeOnExit": true,
"colorScheme": "Dracula",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Cascadia Code PL",
"fontSize": 10,
"guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"hidden": false,
"historySize": 9001,
"name": "Ubuntu-18.04",
"padding": "0, 0, 0, 0",
"source": "Windows.Terminal.Wsl",
"snapOnInput": true,
"tabTitle": "Ubuntu",
"useAcrylic": true
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": true,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
},
{
"guid": "{63e31163-583f-5850-9c1e-24e227dd2da9}",
"hidden": true,
"name": "PowerShell (dotnet global)",
"source": "Windows.Terminal.PowershellCore"
}
],
// https://terminalsplash.com/
"schemes": [
{
"name": "Dracula",
"background": "#282A36",
"black": "#21222C",
"blue": "#BD93F9",
"brightBlack": "#6272A4",
"brightBlue": "#D6ACFF",
"brightCyan": "#A4FFFF",
"brightGreen": "#69FF94",
"brightPurple": "#FF92DF",
"brightRed": "#FF6E6E",
"brightWhite": "#FFFFFF",
"brightYellow": "#FFFFA5",
"cyan": "#8BE9FD",
"foreground": "#F8F8F2",
"green": "#50FA7B",
"purple": "#FF79C6",
"red": "#FF5555",
"white": "#F8F8F2",
"yellow": "#F1FA8C"
},
{
"name": "VSCode",
"background": "#232323",
"black": "#000000",
"blue": "#579BD5",
"brightBlack": "#797979",
"brightBlue": "#9BDBFE",
"brightCyan": "#2BC4E2",
"brightGreen": "#1AD69C",
"brightPurple": "#DF89DD",
"brightRed": "#F6645D",
"brightWhite": "#EAEAEA",
"brightYellow": "#F6F353",
"cyan": "#00B6D6",
"foreground": "#D3D3D3",
"green": "#3FC48A",
"purple": "#CA5BC8",
"red": "#D8473F",
"white": "#EAEAEA",
"yellow": "#D7BA7D"
}
],
// Add any keybinding overrides to this array.
// To unbind a default keybinding, set the command to "unbound"
"keybindings": [
{
"command": "closeTab",
"keys": [
"ctrl+w"
]
},
{
"command": "newTab",
"keys": [
"ctrl+t"
]
},
{
"command": {
"action": "splitPane",
"split": "auto"
},
"keys": [
"ctrl+|"
]
},
{
"keys": [
"ctrl+shift+d"
],
"command": {
"action": "splitPane",
"split": "auto",
"splitMode": "duplicate"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment