-
Notifications
You must be signed in to change notification settings - Fork 2k
Cmder's shell in other terminals
You can start Cmder's shell in other terminals.
-
Create a
cmder_shell.bat
file with the following content:@echo off if "%cmder_init%" == "1" ( "%CMDER_ROOT%\vendor\clink\clink.bat" inject -q --profile "%CMDER_ROOT%\config" --scripts "%CMDER_ROOT%\vendor" ) else ( set cmder_init=1 ) pushd %CMDER_ROOT% call "%CMDER_ROOT%\vendor\init.bat" /f popd
-
Save it in your Cmder installation folder:
[cmder_root]\cmder_shell.bat
-
Important Add Cmder's installation path to
%PATH%
:
https://github.com/cmderdev/cmder/wiki/Setting-up-Environment-Variables#3-adding-to-path -
Type
cmder_shell
from CMD to get the Cmder's shell: -
Optional Install OneHalfDark color scheme:
- Install Microsoft's
ColorTool.exe
from here - Download OneHalfDark.itermcolors
- Read this guide to apply the color scheme, for example:
colortool -b OneHalfDark
- Install Microsoft's
-
Optional Install the agave, or your custom monospace font, and set it as the default font for Cmd.exe
Demo:
If you add cmder_shell.bat
to the AutoRun
registry key, the Cmder shell will start in CMD.EXE
each time you open a new cmd window.
- Open
RegEdit.exe
and navigate to the following key (Create the Key if it doesn't exist):- For Current User Only:
HKEY_CURRENT_USER\Software\Microsoft\Command Processor
- For All users on the PC:
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor
- For Current User Only:
- Either Edit or Create a new key to create a String (
REG_SZ
) and enter the name asAutoRun
, then enter the following as Data:
cmder_shell.bat
- Assuming that you have followed the
%PATH%
instructions correctly, every time you open theCMD.EXE
, you'll have the Cmder shell in your terminal.
⚠ Word of caution (originally from https://github.com/cmderdev/cmder/issues/2650#issuecomment-1016459184)
Setting up AutoRun like that will slow down every CMD invocation (even the many background ones that don't show any window), and can potentially interfere with OS or app internal invocations of CMD that aren't expecting Cmder to do so much work. The script could also potentially cause things like installing OS updates to malfunction.
Something to keep it in mind in case you ever notice strange glitches in the future (or various operations being slower than normal) -- removing the script from AutoRun can be a good troubleshooting step whenever strange things are afoot on the computer.
Here's the full registry tweaks. You can save this in a 📁 Console.reg
file using your text editor (e.g. Notepad), then double click it to install.
Modify it to your needs before installations.
- Documentation: https://docs.microsoft.com/en-us/windows-server/administration/windows-console-changes
- Reference: https://superuser.com/a/954426
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console]
"ForceV2"=dword:00000001 ; 1 for new console features
"CtrlKeyShortcutsDisabled"=dword:00000000 ; 0 to enable new key shortcuts
"VirtualTerminalLevel"=dword:00000001 ; 1 to enable VT100 colors
"FilterOnPaste"=dword:00000001 ; 1 to enable new paste behavior
"FontSize"=dword:00100000
"CursorSize"=dword:00000019
"CursorColor"=dword:ffffffff
"DefaultBackground"=dword:ffffffff
"DefaultForeground"=dword:ffffffff
"EnableColorSelection"=dword:00000000
"ExtendedEditKeyCustom"=dword:00000000
"FullScreen"=dword:00000000
"HistoryBufferSize"=dword:00000032
"HistoryNoDup"=dword:00000000
"InsertMode"=dword:00000001
"LineSelection"=dword:00000001
"LineWrap"=dword:00000001
"LoadConIme"=dword:00000001
"NumberOfHistoryBuffers"=dword:00000004
"PopupColors"=dword:000000f5
"ScreenColors"=dword:00000007
"ScrollScale"=dword:00000001
"TerminalScrolling"=dword:00000000
"TrimLeadingZeros"=dword:00000000
"WordDelimiters"=dword:00000000
"ExtendedEditKey"=dword:00000000
"FaceName"="Consolas"
"FontFamily"=dword:00000036
"FontWeight"=dword:00000190
"QuickEdit"=dword:00000000
"ScreenBufferSize"=dword:012c0050
"WindowAlpha"=dword:000000fc
"WindowSize"=dword:00190050
"CurrentPage"=dword:00000000
; OneHalf color scheme
"ColorTable00"=dword:00332c27
"ColorTable01"=dword:00efaf61
"ColorTable02"=dword:0079c398
"ColorTable03"=dword:00c1b556
"ColorTable04"=dword:00756cdf
"ColorTable05"=dword:00dd77c5
"ColorTable06"=dword:007ac0e4
"ColorTable07"=dword:00e4dfdb
"ColorTable08"=dword:0074635a
"ColorTable09"=dword:00efaf61
"ColorTable10"=dword:0079c398
"ColorTable11"=dword:00c1b556
"ColorTable12"=dword:00756cdf
"ColorTable13"=dword:00dd77c5
"ColorTable14"=dword:007ac0e4
"ColorTable15"=dword:00e4dfdb