Configure Windows Right-Click Context Menu for WezTerm
mainTo add an "Open WezTerm Here" option to the Windows directory context menu, modify the Windows Registry (regedit) as follows:
- Navigate to the following keys:
HKEY_CLASSES_ROOT\DirectoryHKEY_CLASSES_ROOT\Directory\BackgroundHKEY_CLASSES_ROOT\Directory\Background\shell
- Create a new key named
weztermundershell.- Set the
Icondata to the path of your WezTerm executable icon. - Set the
(Default)value to the menu name (e.g.,Open Wezterm Here).
- Set the
- Create a new sub-key under
weztermnamedcommand.- Set the
(Default)value to the command string below (adjusting the path to your actual installation directory).
- Set the
Note: Replace C:\soft\WezTerm-windows\wezterm-gui with your actual installation path.
"C:\soft\WezTerm-windows\wezterm-gui" start --no-auto-connect --cwd "%V\"