Skip to content

Instantly share code, notes, and snippets.

@giggio
Created February 12, 2021 17:00
Show Gist options
  • Save giggio/0d3167300d7586410f679a557e2b1c37 to your computer and use it in GitHub Desktop.
Save giggio/0d3167300d7586410f679a557e2b1c37 to your computer and use it in GitHub Desktop.
This adds Context menus for directories and directories background to open in Windows Terminal

This depends on the latest version on main for Windows Terminal, after PR #8898 was merged in: microsoft/terminal#8898

It should be on the preview version on the store in a few weeks.

Adapt the paths to make it work, as the ones here will work on my machine only.

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\WT]
@="Open Windows Terminal here"
"Icon"="C:\\p\\terminal\\src\\cascadia\\CascadiaPackage\\bin\\x64\\Release\\AppX\\WindowsTerminal.exe"
[HKEY_CLASSES_ROOT\Directory\shell\WT\command]
@="wtd.exe -w 1 new-tab -d \"%V\""
[HKEY_CLASSES_ROOT\Directory\shell\WTU]
@="Open Windows Terminal (Ubuntu) here"
"Icon"="C:\\Program Files\\WindowsApps\\CanonicalGroupLimited.UbuntuonWindows_2004.2020.812.0_x64__79rhkp1fndgsc\\ubuntu.exe"
[HKEY_CLASSES_ROOT\Directory\shell\WTU\command]
@="wtd.exe -w 1 new-tab -d \"%V\" --profile Ubuntu"
[HKEY_CLASSES_ROOT\Directory\Background\shell\WT]
@="Open Windows Terminal here"
"Icon"="C:\\p\\terminal\\src\\cascadia\\CascadiaPackage\\bin\\x64\\Release\\AppX\\WindowsTerminal.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\WT\command]
@="wtd.exe -w 1 new-tab -d \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\WTU]
@="Open Windows Terminal (Ubuntu) here"
"Icon"="C:\\Program Files\\WindowsApps\\CanonicalGroupLimited.UbuntuonWindows_2004.2020.812.0_x64__79rhkp1fndgsc\\ubuntu.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\WTU\command]
@="wtd.exe -w 1 new-tab -d \"%V\" --profile Ubuntu"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment