Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xymopen/7e489aac3183ed7117ab30fbd08b46ff to your computer and use it in GitHub Desktop.
Save xymopen/7e489aac3183ed7117ab30fbd08b46ff to your computer and use it in GitHub Desktop.
Open Windows Terminal and Fluent Terminal in current folder

Open Windows Terminal and Fluent Terminal in current folder

Using Registry to add "Terminal Here" in the context menu.

Icon value is optional, path may change with different version.

notice change [your username] to the correct username.

Use cmd.exe to resolve executable from %PATH%. Require that %UserProfile%\AppData\Local\Microsoft\WindowsApps is presented at %PATH% of system environment variable (which is default).

Windows Registry Editor Version 5.00
; Require `%UserProfile%\AppData\Local\Microsoft\WindowsApps` presented
; at `%PATH%` of **system** environment variable
[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\background\shell\wt]
@="Open Windows Terminal here"
"Icon"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.0.1401.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe"
"Extended"=""
"NoWorkingDirectory"=""
[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\background\shell\wt\command]
@="cmd.exe /c start \"\" wt.exe new-tab --startingDirectory \"%V\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\background\shell\flute]
@="Open Fluent Terminal here"
"Extended"=""
"NoWorkingDirectory"=""
[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\background\shell\flute\command]
; https://github.com/felixse/FluentTerminal/wiki/Command-Line-Arguments
@="cmd.exe /c start \"\" flute.exe new \"%V\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment