Last active
May 10, 2017 10:31
-
-
Save Shoozza/c6823363061f34bf9e68 to your computer and use it in GitHub Desktop.
Cmder.bat argument execution support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
REM Example: Cmder.bat vim hello_world.c | |
REM will run vim hello_world.c inside Cmder | |
REM Note Add following line at the end of init.bat (without REM) | |
REM @if not "%*" == "" %* | |
SET "CMDER_ROOT=%~dp0" | |
IF "%ConEmuDir%" == "" SET "ConEmuDir=%CMDER_ROOT%\vendor\conemu-maximus5" | |
START "" "%ConEmuDir%\ConEmu.exe" /Icon "%CMDER_ROOT%\icons\cmder.ico" /Title Cmder /LoadCfgFile "%CMDER_ROOT%\config\ConEmu.xml" /cmd cmd /k ""%ConEmuDir%\..\init.bat" %*" -new_console:d:%USERPROFILE% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@alexandr-san4ez, you can create another .bat file which contains the commands you want to run at Cmder
and just call Cmder.bat YOUR_FILE.bat