mirror of
https://github.com/cmderdev/cmder.git
synced 2025-07-07 21:10:31 +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:
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 " "
|
||||
}
|
Reference in New Issue
Block a user