Skip to content

Instantly share code, notes, and snippets.

@kevduc
Created September 23, 2021 04:15
Show Gist options
  • Save kevduc/2c011c855fb3ffa0145c2890b606850c to your computer and use it in GitHub Desktop.
Save kevduc/2c011c855fb3ffa0145c2890b606850c to your computer and use it in GitHub Desktop.
JSON settings to add Git Bash and Node consoles to Windows Terminal
{
"commandline": "%PROGRAMFILES%/Git/bin/bash.exe -i -l",
"guid": "{b6dcc215-1356-4b6b-907b-61957457104a}",
"icon": "%PROGRAMFILES%/Git/mingw64/share/git/git-for-windows.ico",
"name": "Git Bash",
"startingDirectory": "%USERPROFILE%/Documents/Git",
"tabTitle": "Git Bash"
},
{
"commandline": "C:\\Program Files\\nodejs\\node.exe",
"guid": "{40a97e61-f482-493e-b7ae-1ece6ecdc2b0}",
"icon": "C:\\Program Files\\nodejs\\node.ico",
"name": "Node",
"startingDirectory": null,
"tabTitle": "Node.js"
}
@kevduc
Copy link
Author

kevduc commented Sep 23, 2021

To get the node.ico icon file, start a PoweShell console in Administrator mode and run:

[System.Reflection.Assembly]::LoadWithPartialName('System.Drawing')  | Out-Null
[System.Drawing.Icon]::ExtractAssociatedIcon('C:\Program Files\nodejs\node.exe').ToBitmap().Save('C:\Program Files\nodejs\node.ico')

See ExtractIcon.ps1 for more info

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