Skip to content

Instantly share code, notes, and snippets.

@trajano
Last active June 21, 2024 11:27
Show Gist options
  • Save trajano/24f4edccd9a997fad8b4de29ea252cc8 to your computer and use it in GitHub Desktop.
Save trajano/24f4edccd9a997fad8b4de29ea252cc8 to your computer and use it in GitHub Desktop.
Windows Terminal (with git bash and additional shortcuts)
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{00000000-0000-0000-ba54-000000000002}",
"launchMode": "maximized",
"theme": "light",
"useTabSwitcher": false,
"tabWidthMode": "titleLength",
"profiles": {
"defaults": {
"background": "#000000",
"fontFace": "Cascadia Code PL",
"fontWeight": "semi-light",
"cursorShape": "vintage",
"cursorHeight": 25
},
"list" : [
{
"guid": "{00000000-0000-0000-ba54-000000000001}",
"commandline": "%UserProfile%/scoop/apps/git/current/usr/bin/bash.exe -i -l",
"icon": "c:\\opt\\icons8-console-96.png",
"startingDirectory": "%UserProfile%",
"backgroundImage": "C:\\Users\\trajano\\OneDrive\\app-background\\terminal.png",
"backgroundImageOpacity": 0.2,
"name": "Bash"
},
{
"guid": "{00000000-0000-0000-ba54-000000000002}",
"commandline": "%UserProfile%/scoop/apps/git/current/usr/bin/bash.exe -i -l",
"antialiasingMode": "cleartype",
"fontFace": "Source Code Pro",
"startingDirectory": "%UserProfile%",
"icon": "c:\\opt\\icons8-console-96.png",
"name": "Bash (SFW)"
},
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"background": "#000020",
"hidden": false
},
{
// Make changes here to the cmd.exe profile
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "cmd",
"commandline": "cmd.exe",
"backgroundImage": "C:\\Users\\trajano\\OneDrive\\terminal background.png",
"backgroundImageOpacity": 0.1,
"hidden": false
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure",
"hidden": true
},
{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"fontFace": "Source Code Pro",
"startingDirectory": "%UserProfile%",
"source": "Windows.Terminal.Wsl"
},
{
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"name": "PowerShell",
"source": "Windows.Terminal.PowershellCore"
}
]
},
"schemes": [],
"keybindings": [
{
"command": {
"action": "adjustFontSize",
"delta": 1
},
"keys": ["ctrl+plus"]
},
{
"command": {
"action": "adjustFontSize",
"delta": -1
},
"keys": ["ctrl+-"]
},
{
"command": {
"action": "adjustFontSize",
"delta": -1
},
"keys": ["ctrl+numpad_minus"]
},
{
"command": "resetFontSize",
"keys": ["ctrl+numpad_0"]
},
{
"command": {
"action": "adjustFontSize",
"delta": 1
},
"keys": ["ctrl+numpad_plus"]
},
{
"command": "copy",
"keys": ["ctrl+insert"]
},
{
"command": "paste",
"keys": ["shift+insert"]
},
{ "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" },
{
"command": {
"action": "newTab",
"profile": "Bash"
},
"keys": ["ctrl+shift+n"]
},
{
"command": "closeTab",
"keys": ["ctrl+f4"]
},
{
"command": "closeOtherTabs",
"keys": ["ctrl+shift+f4"]
},
{
"command": "closeTab",
"keys": ["ctrl+w"]
},
{
"command": "closeOtherTabs",
"keys": ["ctrl+shift+w"]
}
]
}
}
@mendelsphotography
Copy link

Makes an error 1st Error when opening (the "globals" property is deprecated - your settings might need updating. For more info, see this web page.) 2nd when opening bash ([error 0x80070002 when launching `"%UserProfile%\scoop\apps\git\current\usr\bin\bash.exe" -i -l']) that's the 2 errors it gives

@trajano
Copy link
Author

trajano commented Jan 31, 2021

Thanks, it's been a while since I looked at this gist, I updated it now.

@mendelsphotography
Copy link

thanks

@mendelsphotography
Copy link

still the same error by me for bash

@trajano
Copy link
Author

trajano commented Feb 2, 2021

are you using scoop install git or scoop install git-with-openssh? @mendelsphotography

@mendelsphotography
Copy link

idk

@mendelsphotography
Copy link

i installed git with the exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment