Fix PSReadline clearing directory prompt.

If user has PSReadline and is using it be sure to clear 1 less line to prevent the directory prompt from being cleared.

Fixes #879
This commit is contained in:
Martin Kemp 2016-03-10 10:50:37 +00:00
parent 7d2197086e
commit 05c113efee

4
vendor/profile.ps1 vendored
View File

@ -88,6 +88,10 @@ if ( $ENV:CMDER_START ) {
Set-Location -Path "$ENV:CMDER_START"
}
if (Get-Module PSReadline -ErrorAction "SilentlyContinue") {
Set-PSReadlineOption -ExtraPromptLineCount 1
}
# Enhance Path
$env:Path = "$Env:CMDER_ROOT\bin;$env:Path;$Env:CMDER_ROOT"