mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-13 03:09:10 +08:00
Allow to run cmd task from custom location.
This commit is contained in:
parent
d95f25207d
commit
9d5d3e1556
@ -1,2 +1,3 @@
|
|||||||
@echo off
|
@echo off
|
||||||
start vendor/conemu-maximus5/ConEmu.exe /Title Cmder /LoadCfgFile ../../config/ConEmu.xml
|
SET CMDER_ROOT=%~dp0
|
||||||
|
start %~dp0/vendor/conemu-maximus5/ConEmu.exe /Title Cmder /LoadCfgFile %~dp0/config/ConEmu.xml
|
||||||
|
@ -488,7 +488,7 @@
|
|||||||
<key name="Task1" modified="2013-11-03 17:59:09" build="130827">
|
<key name="Task1" modified="2013-11-03 17:59:09" build="130827">
|
||||||
<value name="Name" type="string" data="{cmd}"/>
|
<value name="Name" type="string" data="{cmd}"/>
|
||||||
<value name="GuiArgs" type="string" data=" /icon "cmd.exe""/>
|
<value name="GuiArgs" type="string" data=" /icon "cmd.exe""/>
|
||||||
<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="Active" type="dword" data="00000000"/>
|
||||||
<value name="Count" type="dword" data="00000001"/>
|
<value name="Count" type="dword" data="00000001"/>
|
||||||
</key>
|
</key>
|
||||||
|
10
vendor/init.bat
vendored
10
vendor/init.bat
vendored
@ -20,9 +20,10 @@
|
|||||||
set architecture=64
|
set architecture=64
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@set rootDir="%~dp0\.."
|
||||||
|
|
||||||
:: Run clink
|
:: 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
|
:: Prepare for msysgit
|
||||||
|
|
||||||
@ -31,17 +32,12 @@
|
|||||||
@if not defined TERM set TERM=msys
|
@if not defined TERM set TERM=msys
|
||||||
|
|
||||||
:: Enhance Path
|
:: Enhance Path
|
||||||
@set rootDir=%CD%
|
@set git_install_root=%rootDir%\vendor\msysgit
|
||||||
@set git_install_root=%CD%\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;
|
@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
|
:: Add aliases
|
||||||
@doskey /macrofile="%rootDir%\config\aliases"
|
@doskey /macrofile="%rootDir%\config\aliases"
|
||||||
|
|
||||||
|
|
||||||
:: cd into users homedir
|
|
||||||
@cd /d %USERPROFILE%
|
|
||||||
|
|
||||||
:: Set home path
|
:: Set home path
|
||||||
@set HOME=%USERPROFILE%
|
@set HOME=%USERPROFILE%
|
||||||
@echo Welcome to cmder!
|
@echo Welcome to cmder!
|
||||||
|
Loading…
Reference in New Issue
Block a user