Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to run cmd task from custom location. #36

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Cmder.bat
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion config/ConEmu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
10 changes: 3 additions & 7 deletions vendor/init.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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;

:: Add aliases
@doskey /macrofile="%rootDir%\config\aliases"


:: cd into users homedir
@cd /d %USERPROFILE%

:: Set home path
@set HOME=%USERPROFILE%
@echo Welcome to cmder!