mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-15 00:09:11 +08:00
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:
parent
74930bdf6e
commit
27ccd2d065
@ -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 "cmd.exe""/>
|
||||
<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 "%CMDER_ROOT%\vendor\init.bat" -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 "%userprofile%""/>
|
||||
<value name="Cmd1" type="string" data="powershell"/>
|
||||
<value name="Cmd1" type="string" data="powershell -NoLogo -NoProfile -NoExit -File "%CMDER_ROOT%\scripts\powershell\DefaultProfile.ps1""/>
|
||||
<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"/>
|
||||
|
4
scripts/powershell/DefaultProfile.ps1
Normal file
4
scripts/powershell/DefaultProfile.ps1
Normal file
@ -0,0 +1,4 @@
|
||||
# Autoinclude every .ps1 script in the autorun folder.
|
||||
Get-ChildItem -Filter *.ps1 -File "$PSScriptRoot\autorun\" | ForEach-Object {
|
||||
. $_.FullName
|
||||
}
|
7
scripts/powershell/autorun/CmderPrompt.ps1
Normal file
7
scripts/powershell/autorun/CmderPrompt.ps1
Normal file
@ -0,0 +1,7 @@
|
||||
# Define cmder prompt.
|
||||
function prompt()
|
||||
{
|
||||
Write-Host -ForegroundColor Green "$PWD "
|
||||
Write-Host -NoNewline -ForegroundColor DarkGray "λ"
|
||||
return " "
|
||||
}
|
Loading…
Reference in New Issue
Block a user