Skip to content

Instantly share code, notes, and snippets.

@cryocaustik
Created September 5, 2019 05:35
Show Gist options
  • Save cryocaustik/ce0bca9bafdd4ef1d67817771db437e1 to your computer and use it in GitHub Desktop.
Save cryocaustik/ce0bca9bafdd4ef1d67817771db437e1 to your computer and use it in GitHub Desktop.
Adds "Open with Terminal" entry to right click context menu in Windows, to open the target directory/file with Windows Terminal
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with Terminal]
@="Edit with VS Code"
"Icon"="C:\\Users\\REPLACE_ME_WITH_USERNAME\\AppData\\Roaming\\.app_settings\\terminal.ico,0"
[HKEY_CLASSES_ROOT\*\shell\Open with Terminal\command]
@="\"C:\\Users\\REPLACE_ME_WITH_USERNAME\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\windows_terminal]
@="Open with Terminal"
"Icon"="C:\\Users\\REPLACE_ME_WITH_USERNAME\\AppData\\Roaming\\.app_settings\\terminal.ico,0"
[HKEY_CLASSES_ROOT\Directory\shell\windows_terminal\command]
@="\"C:\\Users\\REPLACE_ME_WITH_USERNAME\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\" \"%1\""
; This will make it appear when you right click INSIDE a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\Background\shell\windows_terminal]
@="Open with Terminal"
"Icon"="C:\\Users\\REPLACE_ME_WITH_USERNAME\\AppData\\Roaming\\.app_settings\\terminal.ico,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\windows_terminal\command]
@="\"C:\\Users\\REPLACE_ME_WITH_USERNAME\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\" \"%V\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment