I am sharing here tcm.reg, a registry file which creates context menu Directory entries for cmd and powershell commands, to be opened within Windows Terminal.
The context menu is shown when the user right-clicks on a folder or on the folder background.
These context menu commands open at the Folder path, within Windows Terminal dedicated profiles.
The commands are designed to reuse existing Terminal windows, adding new tabs as needed, to avoid clutter (though by design admin and non-admin profiles will always belong to separate Terminal windows.)
Notice that the Windows Terminal profiles themselves indicate whether to use Administrator privileges with a given command, not the Registry entries.
This is NOT meant to open PowerShell or CommandPrompt directly, but only within Windows Terminal.
Just double click on tcm.reg to add the context menu to Windows.
Change the path to the custom icons if you want to use your own, or the ones provided in this repository.
The reg file assumes you have Windows Terminal installed, and that you have configured admin and non-admin profiles:
- Command Prompt
- Windows PowerShell
- Command Prompt (admin)
- Windows PowerShell (admin)
You can of course modify the .reg file to suit the Windows Terminal profiles you use.
The .reg file includes comments to identify the relevant parts:
Just double click on remove-tcm.reg to uninstall this context menu.