Skip to content

Instantly share code, notes, and snippets.

@KyleGobel
Last active September 27, 2020 14:48
Show Gist options
  • Save KyleGobel/0f2fe6c8be796d055e471c963c6dd2fe to your computer and use it in GitHub Desktop.
Save KyleGobel/0f2fe6c8be796d055e471c963c6dd2fe to your computer and use it in GitHub Desktop.
Windows Terminal
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"alwaysShowTabs": true,
"copyOnSelect": false,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"disabledProfileSources": [
"Windows.Terminal.Azure"
],
"initialCols": 120,
"initialRows": 30,
"keybindings": [
{
"command": "closePane",
"keys": [
"ctrl+shift+w"
]
},
{
"command": "copy",
"keys": [
"ctrl+shift+c"
]
},
{
"command": "duplicateTab",
"keys": [
"ctrl+shift+d"
]
},
{
"command": "newTab",
"keys": [
"ctrl+shift+t"
]
},
{
"command": "newTabProfile0",
"keys": [
"ctrl+shift+1"
]
},
{
"command": "newTabProfile1",
"keys": [
"ctrl+shift+2"
]
},
{
"command": "newTabProfile2",
"keys": [
"ctrl+shift+3"
]
},
{
"command": "newTabProfile3",
"keys": [
"ctrl+shift+4"
]
},
{
"command": "newTabProfile4",
"keys": [
"ctrl+shift+5"
]
},
{
"command": "newTabProfile5",
"keys": [
"ctrl+shift+6"
]
},
{
"command": "newTabProfile6",
"keys": [
"ctrl+shift+7"
]
},
{
"command": "newTabProfile7",
"keys": [
"ctrl+shift+8"
]
},
{
"command": "newTabProfile8",
"keys": [
"ctrl+shift+9"
]
},
{
"command": "nextTab",
"keys": [
"ctrl+tab"
]
},
{
"command": "openNewTabDropdown",
"keys": [
"ctrl+shift+space"
]
},
{
"command": "openSettings",
"keys": [
"ctrl+,"
]
},
{
"command": "paste",
"keys": [
"ctrl+shift+v"
]
},
{
"command": "prevTab",
"keys": [
"ctrl+shift+tab"
]
},
{
"command": "scrollDown",
"keys": [
"ctrl+shift+down"
]
},
{
"command": "scrollDownPage",
"keys": [
"ctrl+shift+pgdn"
]
},
{
"command": "scrollUp",
"keys": [
"ctrl+shift+up"
]
},
{
"command": "scrollUpPage",
"keys": [
"ctrl+shift+pgup"
]
},
{
"command": "switchToTab0",
"keys": [
"ctrl+alt+1"
]
},
{
"command": "switchToTab1",
"keys": [
"ctrl+alt+2"
]
},
{
"command": "switchToTab2",
"keys": [
"ctrl+alt+3"
]
},
{
"command": "switchToTab3",
"keys": [
"ctrl+alt+4"
]
},
{
"command": "switchToTab4",
"keys": [
"ctrl+alt+5"
]
},
{
"command": "switchToTab5",
"keys": [
"ctrl+alt+6"
]
},
{
"command": "switchToTab6",
"keys": [
"ctrl+alt+7"
]
},
{
"command": "switchToTab7",
"keys": [
"ctrl+alt+8"
]
},
{
"command": "switchToTab8",
"keys": [
"ctrl+alt+9"
]
},
{
"command": {
"action": "splitPane",
"split": "auto",
"splitMode": "duplicate"
},
"keys": [ "ctrl+\\"]
},
{
"command": "closePane",
"keys": ["ctrl+w"]
},
{
"command": {
"action": "splitPane",
"split": "horizontal"
},
"keys": [
"ctrl+down"
]
},
{
"command": {
"action": "splitPane",
"split": "vertical"
},
"keys": [
"ctrl+right"
]
},
{
"command": {
"action": "moveFocus",
"direction": "down"
},
"keys": [
"alt+down"
]
},
{
"command": {
"action": "moveFocus",
"direction": "up"
},
"keys": [
"alt+up"
]
},
{
"command": {
"action": "moveFocus",
"direction": "right"
},
"keys": [
"alt+right"
]
},
{
"command": {
"action": "moveFocus",
"direction": "left"
},
"keys": [
"alt+left"
]
},
{
"command": "closePane",
"keys": [
"ctrl+shift+w"
]
}
],
"requestedTheme": "system",
"showTabsInTitlebar": true,
"showTerminalTitleInTitlebar": true,
"wordDelimiters": " ./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?│",
"profiles": [
{
"acrylicOpacity": 0.5,
"closeOnExit": true,
"colorScheme": "Andromeda",
"commandline": "C:\\Program Files\\PowerShell\\6\\pwsh.exe",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Cascadia Code PL",
"fontSize": 10,
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"historySize": 9001,
"icon": "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png",
"name": "PowerShell Core",
"padding": "0, 0, 0, 0",
"snapOnInput": true,
"startingDirectory": "%USERPROFILE%",
"useAcrylic": false
},
{
"acrylicOpacity": 0.5,
"background": "#012456",
"closeOnExit": true,
"colorScheme": "Campbell",
"commandline": "powershell.exe",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Consolas",
"fontSize": 10,
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"historySize": 9001,
"icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
"name": "Windows PowerShell",
"padding": "0, 0, 0, 0",
"snapOnInput": true,
"startingDirectory": "%USERPROFILE%",
"useAcrylic": false
},
{
"acrylicOpacity": 0.75,
"closeOnExit": true,
"colorScheme": "Campbell",
"commandline": "cmd.exe",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Consolas",
"fontSize": 10,
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"historySize": 9001,
"icon": "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
"name": "cmd",
"padding": "0, 0, 0, 0",
"snapOnInput": true,
"startingDirectory": "%USERPROFILE%",
"useAcrylic": true
},
{
"acrylicOpacity": 0.6,
"closeOnExit": false,
"hidden": true,
"colorScheme": "Vintage",
"commandline": "Azure",
"connectionType": "{d9fcfdfa-a479-412c-83b7-c5640e61cd62}",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Consolas",
"fontSize": 10,
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"historySize": 9001,
"icon": "ms-appx:///ProfileIcons/{b453ae62-4e3d-5e58-b989-0a998ec441b8}.png",
"name": "Azure Cloud Shell",
"padding": "0, 0, 0, 0",
"snapOnInput": true,
"startingDirectory": "%USERPROFILE%",
"useAcrylic": true
},
{
"acrylicOpacity": 0.7,
"closeOnExit": true,
"colorScheme": "UbuntuLegit",
"commandline": "wsl.exe -d Ubuntu-18.04",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Cascadia Code PL",
"fontSize": 12,
"guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"historySize": 9001,
"icon": "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png",
"name": "Ubuntu-18.04",
"padding": "0, 0, 0, 0",
"snapOnInput": true,
"startingDirectory": "%USERPROFILE%",
"useAcrylic": false
}
],
"schemes": [
{
"background": "#0C0C0C",
"black": "#0C0C0C",
"blue": "#0037DA",
"brightBlack": "#767676",
"brightBlue": "#3B78FF",
"brightCyan": "#61D6D6",
"brightGreen": "#16C60C",
"brightPurple": "#B4009E",
"brightRed": "#E74856",
"brightWhite": "#F2F2F2",
"brightYellow": "#F9F1A5",
"cyan": "#3A96DD",
"foreground": "#CCCCCC",
"green": "#13A10E",
"name": "Campbell",
"purple": "#881798",
"red": "#C50F1F",
"white": "#CCCCCC",
"yellow": "#C19C00"
},
{
"background": "#2C001E",
"black": "#4E9A06",
"blue": "#3465A4",
"brightBlack": "#555753",
"brightBlue": "#729FCF",
"brightCyan": "#34E2E2",
"brightGreen": "#8AE234",
"brightPurple": "#AD7FA8",
"brightRed": "#EF2929",
"brightWhite": "#EEEEEE",
"brightYellow": "#FCE94F",
"cyan": "#06989A",
"foreground": "#EEEEEE",
"green": "#300A24",
"name": "UbuntuLegit",
"purple": "#75507B",
"red": "#CC0000",
"white": "#D3D7CF",
"yellow": "#C4A000"
},
{
"name": "Andromeda",
"black": "#000000",
"red": "#cd3131",
"green": "#05bc79",
"yellow": "#e5e512",
"blue": "#2472c8",
"purple": "#bc3fbc",
"cyan": "#0fa8cd",
"white": "#e5e5e5",
"brightBlack": "#666666",
"brightRed": "#cd3131",
"brightGreen": "#05bc79",
"brightYellow": "#e5e512",
"brightBlue": "#2472c8",
"brightPurple": "#bc3fbc",
"brightCyan": "#0fa8cd",
"brightWhite": "#e5e5e5",
"background": "#262a33",
"foreground": "#e5e5e5"
},
{
"background": "#000000",
"black": "#000000",
"blue": "#000080",
"brightBlack": "#808080",
"brightBlue": "#0000FF",
"brightCyan": "#00FFFF",
"brightGreen": "#00FF00",
"brightPurple": "#FF00FF",
"brightRed": "#FF0000",
"brightWhite": "#FFFFFF",
"brightYellow": "#FFFF00",
"cyan": "#008080",
"foreground": "#C0C0C0",
"green": "#008000",
"name": "Vintage",
"purple": "#800080",
"red": "#800000",
"white": "#C0C0C0",
"yellow": "#808000"
},
{
"background": "#282C34",
"black": "#282C34",
"blue": "#61AFEF",
"brightBlack": "#5A6374",
"brightBlue": "#61AFEF",
"brightCyan": "#56B6C2",
"brightGreen": "#98C379",
"brightPurple": "#C678DD",
"brightRed": "#E06C75",
"brightWhite": "#DCDFE4",
"brightYellow": "#E5C07B",
"cyan": "#56B6C2",
"foreground": "#DCDFE4",
"green": "#98C379",
"name": "One Half Dark",
"purple": "#C678DD",
"red": "#E06C75",
"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",
"cyan": "#0997B3",
"foreground": "#383A42",
"green": "#50A14F",
"name": "One Half Light",
"purple": "#A626A4",
"red": "#E45649",
"white": "#FAFAFA",
"yellow": "#C18301"
},
{
"background": "#002B36",
"black": "#073642",
"blue": "#268BD2",
"brightBlack": "#002B36",
"brightBlue": "#839496",
"brightCyan": "#93A1A1",
"brightGreen": "#586E75",
"brightPurple": "#6C71C4",
"brightRed": "#CB4B16",
"brightWhite": "#FDF6E3",
"brightYellow": "#657B83",
"cyan": "#2AA198",
"foreground": "#839496",
"green": "#859900",
"name": "Solarized Dark",
"purple": "#D33682",
"red": "#DC322F",
"white": "#EEE8D5",
"yellow": "#B58900"
},
{
"background": "#FDF6E3",
"black": "#073642",
"blue": "#268BD2",
"brightBlack": "#002B36",
"brightBlue": "#839496",
"brightCyan": "#93A1A1",
"brightGreen": "#586E75",
"brightPurple": "#6C71C4",
"brightRed": "#CB4B16",
"brightWhite": "#FDF6E3",
"brightYellow": "#657B83",
"cyan": "#2AA198",
"foreground": "#657B83",
"green": "#859900",
"name": "Solarized Light",
"purple": "#D33682",
"red": "#DC322F",
"white": "#EEE8D5",
"yellow": "#B58900"
}
]
}

Install the font Cascadia Code Powerline Regular.

https://github.com/microsoft/cascadia-code/releases

  1. Download and open the zip
  2. Navigate within the ttf folder, double click CascadiaCodePL.ttf
  3. Click the install button

Install Powerline for PowershellCore

  1. Open Powershell CORE
  2. Run the following to install the necessary modules
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck
  1. Open your powershell core profile page with the following (code $PROFILE)
  2. Set the contents of your profile to the following
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox

Set-Alias k kubectl 

Setup Powerline for Ubuntu

  1. Open ubuntu command prompt
  2. Install prereqs
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-1.12
  1. Edit your ~/.profile to point to the correct go binary. Open the profile with code ~/.profile
  2. Add this line to the bottom
PATH="$PATH:/usr/lib/go-1.12/bin"
  1. Source the profile (or restart the shell) (source ~/.profile)
  2. Install powerline
go get -u github.com/justjanne/powerline-go
  1. Edit your .bashrc file. Add the following to the bottom (to open it type code ~/.bashrc)
GOPATH=$HOME/go
function _update_ps1() {
    PS1="$($GOPATH/bin/powerline-go -error $?)"
}
if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
    PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi

Install Windows Terminal

  1. Open the windows store, search for Terminal. Install it
  2. Open windows terminal, and open the settings json file (Ctrl ,)
  3. Paste in the settings.json file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment