Allow to run cmd task from custom location.

This commit is contained in:
Samuel Vasko 2013-11-29 12:09:20 +01:00
parent d95f25207d
commit 9d5d3e1556
3 changed files with 7 additions and 10 deletions

View File

@ -1,2 +1,3 @@
@echo off
start vendor/conemu-maximus5/ConEmu.exe /Title Cmder /LoadCfgFile ../../config/ConEmu.xml
@echo off
SET CMDER_ROOT=%~dp0
start %~dp0/vendor/conemu-maximus5/ConEmu.exe /Title Cmder /LoadCfgFile %~dp0/config/ConEmu.xml

View File

@ -488,7 +488,7 @@
<key name="Task1" modified="2013-11-03 17:59:09" build="130827">
<value name="Name" type="string" data="{cmd}"/>
<value name="GuiArgs" type="string" data=" /icon &quot;cmd.exe&quot;"/>
<value name="Cmd1" type="string" data="cmd /k vendor\init.bat"/>
<value name="Cmd1" type="string" data="cmd /k %CMDER_ROOT%\vendor\init.bat"/>
<value name="Active" type="dword" data="00000000"/>
<value name="Count" type="dword" data="00000001"/>
</key>

10
vendor/init.bat vendored
View File

@ -20,9 +20,10 @@
set architecture=64
)
@set rootDir="%~dp0\.."
:: Run clink
@vendor\clink\clink_x%architecture%.exe inject --quiet --profile config
@%rootDir%\vendor\clink\clink_x%architecture%.exe inject --quiet --profile %rootDir%\config
:: Prepare for msysgit
@ -31,17 +32,12 @@
@if not defined TERM set TERM=msys
:: Enhance Path
@set rootDir=%CD%
@set git_install_root=%CD%\vendor\msysgit
@set git_install_root=%rootDir%\vendor\msysgit
@set PATH=%PATH%;%rootDir%\bin;%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;%git_install_root%\share\vim\vim73;
:: Add aliases
@doskey /macrofile="%rootDir%\config\aliases"
:: cd into users homedir
@cd /d %USERPROFILE%
:: Set home path
@set HOME=%USERPROFILE%
@echo Welcome to cmder!