- Notifications
You must be signed in to change notification settings - Fork2.1k
Context menu integration
👉 Tip! Cmder can automatically register itself in the context menu. To do so, you can follow the instructions from the README to create theshortcut to open Cmder in a chosen folder.
The registration of the context menu items is also possible through the Settings → Integration.
To add an entry in the Windows Explorer context menu to open Cmder in a specific directory, a registry key needs to be added to Windows.
👉 Note: Before starting, make sure that%CMDER_ROOT% environment variable is correctly set.
You can also manuallycreate oredit the entry by fiddling with your registry.
- Create a new file named
OpenCmderHere.reg(or any other name that ends in.regextension). - Paste the following into it, then double-click to install it.
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]@="Open Cmder Here""Icon"="\"%CMDER_ROOT%\\icons\\cmder.ico\",0"[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder\command]@="\"%CMDER_ROOT%\\Cmder.exe\" /START \"%v\""After adding this, a restart of the explorer might be required to make it work.
- Open theRegistry Editor. To do so, pressWin + R → type
regedit.exeand hit enter - Go to the following key:
HKEY_CLASSES_ROOT\Directory\Background\shell- Find theCmder key, or create it if it doesn't exist.
- Modify the content according to the following values:
Path:[cmder_root]\Cmder.exe /start %vIcon file:[cmder_root]\icons\cmder.ico,0
TBA: See#1645 for how to modify this behavior.
You can use the-- command line argument to pass any supported ConEmu command line argument to the shell extension:
- Create the
CmderXtra.regfile below. - Import it.
- Try out the shell extension.
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\Background\shell\ConEmu_Cmder]@="ConEmu/Cmder Here""NoWorkingDirectory"="""Icon"="C:\\Users\\vagrant\\cmderdev\\icons\\cmder_red.ico"[HKEY_CLASSES_ROOT\Directory\Background\shell\ConEmu_Cmder\command]@="\"C:\\Users\\vagrant\\cmderdev\\Cmder.exe\" -- -reuse -run {cmd::Cmder} -new_console:d:\"%V\":t:\"ConEmu - Cmder\" "[HKEY_CLASSES_ROOT\Directory\shell\ConEmu_Cmder]@="ConEmu/Cmder Here""NoWorkingDirectory"="""Icon"="C:\\Users\\vagrant\\cmderdev\\icons\\cmder_red.ico"[HKEY_CLASSES_ROOT\Directory\shell\ConEmu_Cmder\command]@="\"C:\\Users\\vagrant\\cmderdev\\Cmder.exe\" -- -reuse -run {cmd::Cmder} -new_console:d:\"%V\":t:\"ConEmu - Cmder\" "[HKEY_CLASSES_ROOT\Drive\Background\shell\ConEmu_Cmder]@="ConEmu/Cmder Here""NoWorkingDirectory"="""Icon"="C:\\Users\\vagrant\\cmderdev\\icons\\cmder_red.ico"[HKEY_CLASSES_ROOT\Drive\Background\shell\ConEmu_Cmder\command]@="\"C:\\Users\\vagrant\\cmderdev\\Cmder.exe\" -- -run {cmd::Cmder} -new_console:d:\"%V\""t:\"ConEmu - Cmde\" "[HKEY_CLASSES_ROOT\Drive\shell\ConEmu_Cmder]@="ConEmu/Cmder Here""NoWorkingDirectory"="""Icon"="C:\\Users\\vagrant\\cmderdev\\icons\\cmder_red.ico"[HKEY_CLASSES_ROOT\Drive\shell\ConEmu_Cmder\command]@="\"C:\\Users\\vagrant\\cmderdev\\Cmder.exe\" -- -reuse -run {cmd::Cmder} -new_console:d:\"%V\":t:\"ConEmu - Cmder\" "