Added quotes around cmd.exe launch to prevent problems with spaces in the path. Added powershell arguments for default profile script and to not load the windows level profile. Added CMDER_ROOT to powershell arg. Added powershell script and script dump folder, which contains a script definition to mirror cmd's prompt style.

This commit is contained in:
kjerk 2013-12-01 04:59:53 -08:00
parent 74930bdf6e
commit 27ccd2d065
3 changed files with 20 additions and 9 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2013-11-29 16:19:40" build="131107">
<key name=".Vanilla" modified="2013-12-01 04:08:58" build="131107">
<value name="ColorTable00" type="dword" data="00222827"/>
<value name="ColorTable01" type="dword" data="009e5401"/>
<value name="ColorTable02" type="dword" data="0004aa74"/>
@ -483,30 +483,30 @@
<value name="DndLKey" type="hex" data="00"/>
<value name="DndRKey" type="hex" data="a2"/>
<value name="WndDragKey" type="dword" data="00121101"/>
<key name="Tasks" modified="2013-11-29 16:19:41" build="131107">
<key name="Tasks" modified="2013-12-01 04:08:58" build="131107">
<value name="Count" type="dword" data="00000002"/>
<key name="Task1" modified="2013-11-29 16:19:41" build="131107">
<key name="Task1" modified="2013-12-01 04:08:58" build="131107">
<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 %CMDER_ROOT%\vendor\init.bat -new_console:d:%USERPROFILE%"/>
<value name="Cmd1" type="string" data="cmd /k &quot;%CMDER_ROOT%\vendor\init.bat&quot; -new_console:d:%USERPROFILE%"/>
<value name="Active" type="dword" data="00000000"/>
<value name="Count" type="dword" data="00000001"/>
<value name="Hotkey" type="dword" data="00000000"/>
</key>
<key name="Task2" modified="2013-11-29 16:19:41" build="131107">
<key name="Task2" modified="2013-12-01 04:08:58" build="131107">
<value name="Name" type="string" data="{PowerShell}"/>
<value name="GuiArgs" type="string" data="/dir &quot;%userprofile%&quot;"/>
<value name="Cmd1" type="string" data="powershell"/>
<value name="Cmd1" type="string" data="powershell -NoLogo -NoProfile -NoExit -File &quot;%CMDER_ROOT%\scripts\powershell\DefaultProfile.ps1&quot;"/>
<value name="Active" type="dword" data="00000000"/>
<value name="Count" type="dword" data="00000001"/>
<value name="Hotkey" type="dword" data="00000000"/>
</key>
</key>
<key name="Apps" modified="2013-11-29 16:19:41" build="131107">
<key name="Apps" modified="2013-12-01 04:08:58" build="131107">
<value name="Count" type="dword" data="00000000"/>
</key>
<key name="Colors" modified="2013-11-29 16:19:41" build="131107">
<key name="Palette1" modified="2013-11-29 16:19:41" build="131107">
<key name="Colors" modified="2013-12-01 04:08:58" build="131107">
<key name="Palette1" modified="2013-12-01 04:08:58" build="131107">
<value name="Name" type="string" data="Monokai"/>
<value name="ExtendColors" type="hex" data="00"/>
<value name="ExtendColorIdx" type="hex" data="0e"/>

View File

@ -0,0 +1,4 @@
# Autoinclude every .ps1 script in the autorun folder.
Get-ChildItem -Filter *.ps1 -File "$PSScriptRoot\autorun\" | ForEach-Object {
. $_.FullName
}

View File

@ -0,0 +1,7 @@
# Define cmder prompt.
function prompt()
{
Write-Host -ForegroundColor Green "$PWD "
Write-Host -NoNewline -ForegroundColor DarkGray "λ"
return " "
}