Skip to content

Commit 4dc1249

Browse files
committed
Set tasks to always user CMDER_START
CMDER_START should always be set as a result of either: 1. The user passes a directory to cmder.exe using `/START $DIR` - or - 2. Sets CMDER_START as a default environment variable. Fixes #772
1 parent 5b7c008 commit 4dc1249

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: config/ConEmu.xml

+9-9
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@
488488
<key name="Task1" modified="2015-11-24 14:49:10" build="151119">
489489
<value name="Name" type="string" data="{cmd::Cmder as Admin}"/>
490490
<value name="GuiArgs" type="string" data=" /icon &quot;%CMDER_ROOT%\icons\cmder.ico&quot;"/>
491-
<value name="Cmd1" type="string" data="*cmd /k &quot;%ConEmuDir%\..\init.bat&quot; -new_console:d:%USERPROFILE%"/>
491+
<value name="Cmd1" type="string" data="*cmd /k &quot;%ConEmuDir%\..\init.bat&quot; -new_console:d:%CMDER_START%"/>
492492
<value name="Active" type="dword" data="00000000"/>
493493
<value name="Count" type="dword" data="00000001"/>
494494
<value name="Hotkey" type="dword" data="00000000"/>
@@ -497,7 +497,7 @@
497497
<key name="Task2" modified="2015-11-24 14:49:10" build="151119">
498498
<value name="Name" type="string" data="{cmd::Cmder}"/>
499499
<value name="GuiArgs" type="string" data=" /icon &quot;%CMDER_ROOT%\icons\cmder.ico&quot;"/>
500-
<value name="Cmd1" type="string" data="cmd /k &quot;%ConEmuDir%\..\init.bat&quot; -new_console:d:%USERPROFILE%"/>
500+
<value name="Cmd1" type="string" data="cmd /k &quot;%ConEmuDir%\..\init.bat&quot; -new_console:d:%CMDER_START%"/>
501501
<value name="Active" type="dword" data="00000000"/>
502502
<value name="Count" type="dword" data="00000001"/>
503503
<value name="Hotkey" type="dword" data="00000000"/>
@@ -507,7 +507,7 @@
507507
<value name="Name" type="string" data="{Powershell::PowerShell as Admin}"/>
508508
<value name="Hotkey" type="dword" data="00000000"/>
509509
<value name="GuiArgs" type="string" data=" /icon &quot;%CMDER_ROOT%\icons\cmder.ico&quot;"/>
510-
<value name="Cmd1" type="string" data="*PowerShell -ExecutionPolicy Bypass -NoLogo -NoProfile -NoExit -Command &quot;Invoke-Expression '. ''%ConEmuDir%\..\profile.ps1'''&quot; -new_console:d:&quot;%USERPROFILE%&quot;"/>
510+
<value name="Cmd1" type="string" data="*PowerShell -ExecutionPolicy Bypass -NoLogo -NoProfile -NoExit -Command &quot;Invoke-Expression '. ''%ConEmuDir%\..\profile.ps1'''&quot; -new_console:d:&quot;%CMDER_START%&quot;"/>
511511
<value name="Active" type="dword" data="00000000"/>
512512
<value name="Count" type="dword" data="00000001"/>
513513
<value name="Flags" type="dword" data="00000000"/>
@@ -516,7 +516,7 @@
516516
<value name="Name" type="string" data="{Powershell::Powershell}"/>
517517
<value name="Hotkey" type="dword" data="00000000"/>
518518
<value name="GuiArgs" type="string" data=" /icon &quot;%CMDER_ROOT%\icons\cmder.ico&quot;"/>
519-
<value name="Cmd1" type="string" data="PowerShell -ExecutionPolicy Bypass -NoLogo -NoProfile -NoExit -Command &quot;Invoke-Expression '. ''%ConEmuDir%\..\profile.ps1'''&quot; -new_console:d:&quot;%USERPROFILE%&quot;"/>
519+
<value name="Cmd1" type="string" data="PowerShell -ExecutionPolicy Bypass -NoLogo -NoProfile -NoExit -Command &quot;Invoke-Expression '. ''%ConEmuDir%\..\profile.ps1'''&quot; -new_console:d:&quot;%CMDER_START%&quot;"/>
520520
<value name="Cmd2" type="string" data="%CMDER_ROOT%\vendor\git-for-windows\git-bash.exe"/>
521521
<value name="Active" type="dword" data="00000000"/>
522522
<value name="Count" type="dword" data="00000001"/>
@@ -527,7 +527,7 @@
527527
<value name="Flags" type="dword" data="00000000"/>
528528
<value name="Hotkey" type="dword" data="00000000"/>
529529
<value name="GuiArgs" type="string" data="/icon &quot;%ConEmuDir%\..\git-for-windows\usr\share\git\git-for-windows.ico&quot;"/>
530-
<value name="Cmd1" type="string" data="*%ConEmuDir%\..\git-for-windows\usr\bin\mintty.exe /bin/bash -l -new_console:d:%userProfile%"/>
530+
<value name="Cmd1" type="string" data="*%ConEmuDir%\..\git-for-windows\usr\bin\mintty.exe /bin/bash -l -new_console:d:%CMDER_START%"/>
531531
<value name="Active" type="dword" data="00000000"/>
532532
<value name="Count" type="dword" data="00000001"/>
533533
</key>
@@ -536,10 +536,10 @@
536536
<value name="Flags" type="dword" data="00000000"/>
537537
<value name="Hotkey" type="dword" data="00000000"/>
538538
<value name="GuiArgs" type="string" data="/icon &quot;%ConEmuDir%\..\git-for-windows\usr\share\git\git-for-windows.ico&quot;"/>
539-
<value name="Cmd1" type="string" data="%ConEmuDir%\..\git-for-windows\usr\bin\mintty.exe /bin/bash -l -new_console:d:%userProfile%"/>
539+
<value name="Cmd1" type="string" data="%ConEmuDir%\..\git-for-windows\usr\bin\mintty.exe /bin/bash -l -new_console:d:%CMDER_START%"/>
540540
<value name="Active" type="dword" data="00000000"/>
541541
<value name="Count" type="dword" data="00000001"/>
542-
<value name="Cmd2" type="string" data="%CMDER_ROOT%vendor\git-for-windows\usr\bin\mintty.exe /bin/bash -l -new_console:d:%userProfile%"/>
542+
<value name="Cmd2" type="string" data="%CMDER_ROOT%vendor\git-for-windows\usr\bin\mintty.exe /bin/bash -l -new_console:d:%CMDER_START%"/>
543543
</key>
544544
<key name="Task7" modified="2015-11-24 14:49:10" build="151119">
545545
<value name="Name" type="string" data="{bash::bash as Admin}"/>
@@ -548,14 +548,14 @@
548548
<value name="GuiArgs" type="string" data=" /icon &quot;%CMDER_ROOT%\icons\cmder.ico&quot;"/>
549549
<value name="Active" type="dword" data="00000000"/>
550550
<value name="Count" type="dword" data="00000001"/>
551-
<value name="Cmd1" type="string" data="*cmd /c &quot;%ConEmuDir%\..\git-for-windows\bin\bash --login -i&quot; -new_console:d:%USERPROFILE%"/>
551+
<value name="Cmd1" type="string" data="*cmd /c &quot;%ConEmuDir%\..\git-for-windows\bin\bash --login -i&quot; -new_console:d:%CMDER_START%"/>
552552
</key>
553553
<key name="Task8" modified="2015-11-24 14:49:10" build="151119">
554554
<value name="Name" type="string" data="{bash::bash}"/>
555555
<value name="Flags" type="dword" data="00000000"/>
556556
<value name="Hotkey" type="dword" data="00000000"/>
557557
<value name="GuiArgs" type="string" data=" /icon &quot;%CMDER_ROOT%\icons\cmder.ico&quot;"/>
558-
<value name="Cmd1" type="string" data="cmd /c &quot;%ConEmuDir%\..\git-for-windows\bin\bash --login -i&quot; -new_console:d:%USERPROFILE%"/>
558+
<value name="Cmd1" type="string" data="cmd /c &quot;%ConEmuDir%\..\git-for-windows\bin\bash --login -i&quot; -new_console:d:%CMDER_START%"/>
559559
<value name="Active" type="dword" data="00000000"/>
560560
<value name="Count" type="dword" data="00000001"/>
561561
</key>

0 commit comments

Comments
 (0)